Jump to content
Sign in to follow this  
JJ FX

[SOLVED] Get point attribute value (string) in node parameters

Recommended Posts

Hi,

So I have a string point attrib on a sop node, let's say it's s@this = "Yellow".

When I bring in the attribute into node parameters with houdini expression point("../node",  0, "this", 0) it always evaluates as 0 unless the string is empty s@this = "", then it evaluates as -1. So I guess point() doesn't see string attribs.

But what I need is a string and the exact value of that string! I don't care if it's houdini expressions or python, as long I can just get this attribute and use it inside node parameters!

Edited by JJ FX

Share this post


Link to post
Share on other sites

So instead of point() use points(), eg.:

points("../node",  0, "this")

 

LOL

Edited by JJ FX

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×