Jump to content

PYTHON - Access primitive attribute on newly created node


papsphilip

Recommended Posts

i am using python to create a file SOP assign a path and import a bgeo file. After that i am creating some more nodes in my graph and i need a primitive name attribute from that bgeo. From primitive 0

prim = filenode.prim(0) #get first primitive of node filenode
name = prim.attribValue("name") #get primitive attribute name

This throws an error ----> AttributeError: 'SopNode' object has no attribute 'prim'

Is it possible to read the attribute?

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