Jump to content

Get prim attribute value via python


Recommended Posts

Hi. Guys. 

I'm stuck python scripts. How to get "name" attribute value at prim via python? I would replace the Null name with it.
Python scripts is new to me. I'm not sure error meaning.

Please give me some advice. Thanks!




Link to comment
Share on other sites

Hi Saori, we have to reference the node`s Geometry, not the node itself. Try this:

geo = hou.node("/obj/GEO_model/null1").geometry()

Or, this is the same:

node = hou.node("/obj/GEO_model/null1")
geo = node.geometry()


  • Like 2
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.

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...