Jump to content

How to access an attribute, created in a python SOP, in the network


nmn

Recommended Posts

Hi everyone,

How can I access an attribute that I created in a python SOP, in any other node of the network ?

let us say in my python sop i have something like:

myAttrib = geo.addAttrib(hou.attribType.Prim, "myAttrib", '')
poly = geo.createPolygon()
poly.setAttribValue(myAttrib,someVariable)

and then after my python SOP I added a primitive node and I want to access this attribute ...

I tried $MYATTRIB didn't work

I tried the prim function it didn't work

even though I can see this attribute in my details view with all its values correctly set ...

any ideas about that ?

Cheers

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