1
$\begingroup$

I want to make a scatter func to generate foliage or instance to UE, so i need to save scale, orient and a string reference to unreal mesh, like houdini engine' unreal_instance, but i found blender GN is not supported to store string attributes: enter image description here

does string attribute is on roadmap? or i can use some other way to achieve my thoughts?

$\endgroup$
7
  • $\begingroup$ There are no Blender developers on this site so you'll have to look on developer.blender.org to see what's coming. $\endgroup$
    – John Eason
    Dec 23, 2022 at 9:56
  • $\begingroup$ In what format are you exporting data from Blender? $\endgroup$ Dec 23, 2022 at 10:06
  • $\begingroup$ did u ever try animation nodes? $\endgroup$
    – Chris
    Dec 23, 2022 at 10:14
  • $\begingroup$ @John Eason i post on that site before on another topic, but their developer told me ask question here... $\endgroup$ Dec 29, 2022 at 2:57
  • $\begingroup$ @Martynas Žiemys i made a addon to save my customized point format $\endgroup$ Dec 29, 2022 at 2:59

1 Answer 1

0
$\begingroup$

You can store it wherever you like if you are using Python. You can retrieve it from any node. For example, you could make an output for geometry nodes node group:

enter image description here

$\endgroup$
5
  • 1
    $\begingroup$ Thx for your explanation, what i need is not just a string standalone, but should be a point attribute, for example, i make total thirty points, ten points as apple, ten as banana, ten as orange, and i need to export them to UE instancing, so i need a way to associate every point with UE apple,banana and orange asset reference string... $\endgroup$ Dec 30, 2022 at 2:55
  • $\begingroup$ Named attribute's name is a string. It is stored. $\endgroup$ Dec 30, 2022 at 14:05
  • $\begingroup$ Marynas, I think what OP is saying is they want an attribute that contains a string for each point. $\endgroup$ Jun 20, 2023 at 19:49
  • $\begingroup$ @NoobieStClair Named attribute can be a boolean so it can be a string that some points have(True) and don't have(False). $\endgroup$ Jun 20, 2023 at 20:21
  • 1
    $\begingroup$ Strings are constants - there are no string fields currently. You can't have a string per point. You can have some kind of integer per point, and each integer could mean some string - you then could have some kind of a list of strings in Python and use the stored integers in an attribute as indices of those strings. $\endgroup$ Jun 20, 2023 at 22:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .