Jump to content

Extract string attribute from point


Recommended Posts

I've looked here and I didn't find the answer so I am asking for help on this one.

How do I extract a string attribute from points?

I am trying the point function but it just returns numbers, even with the points attributes being strings.

I have a string attribute on each point that will be my object name and I want to call this attribute from a delayed loader shader.

So I tried this on the file parameter on the shader "$HIP/bgeo/model_`point("/obj/myPointInstance/OUT",instancepoint(),"kind",0)`.$F.bgeo", which "kind" attribute would be something like "girl","boy" or "kid", I know I can use numbers but I prefer to do it with strings because all my files are already named.

Can anyone help me with that?

Edited by tomhanks
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...