tomhanks Posted March 18, 2010 Share Posted March 18, 2010 (edited) 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 March 18, 2010 by tomhanks Quote Link to comment Share on other sites More sharing options...
graham Posted March 18, 2010 Share Posted March 18, 2010 You just need to use the points() expression. exhelp points string points (string surface_node, float point_number, string attribute) Returns the string value of a point attribute. Quote Link to comment Share on other sites More sharing options...
tomhanks Posted March 18, 2010 Author Share Posted March 18, 2010 I am feeling very dumb right now!!! How did I not see this. Thank you so much!!!! Quote Link to comment Share on other sites More sharing options...
pclaes Posted March 19, 2010 Share Posted March 19, 2010 lots of the expressions have the "s" at the end to get string values back, these are few more I tend to use often: point -> points ch -> chs stamp -> stamps eval -> evals ... 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.