Jump to content
Sign in to follow this  
gemini

Descriptive Parameter to Node

Recommended Posts

Hi,

I found a very useful thing in docs but seems like not working for me unfortunately.

Can anyone help ?

I tried to add a descriptive parm to a node ( the same as a digital asset has ):

node.setUserData("descriptiveparm", "parm")  

THX!

G

Edited by gemini

Share this post


Link to post
Share on other sites

Hi there! 

I just tried to set the descriptive parameter on a geometry sphere and it works.

n = hou.node("/obj/sphere1")
n.setUserData("descriptiveparm", "parm")
n.userData("descriptiveparm")
>>'parm'

what exactly is not working for you ? 

-J

Share this post


Link to post
Share on other sites

Thanks,

I used it on an object level ROP network node, where I created an own string parameter. Like this:

n = hou.node('/obj/ropnet_wip_v6_dRop_2_3')
n.setUserData("descriptiveparm", "prog")
n.userData("descriptiveparm")

Not works! :(

Is it works only on sop node ?

THX!  

Share this post


Link to post
Share on other sites

This doc does say that it won't override the descriptive parm on certain nodes. 

http://www.sidefx.com/docs/houdini/network/options.html

But I just tried it on an object level ROP network node and it worked.

Did you try to get the userDataDict() on the node ? 

n = hou.node('/obj/ropnet_wip_v6_dRop_2_3')
n.userDataDict()

Which version of Houdini are you using ? Did you try setting any other user data and see if it's working ? 

Thanks 

-J
 

 

Share this post


Link to post
Share on other sites

Sorry, It works. I replaced the label with the parm name itself. :(

THX!!

G

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  

×