papsphilip Posted September 20, 2021 Share Posted September 20, 2021 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? Quote Link to comment Share on other sites More sharing options...
papsphilip Posted September 27, 2021 Author Share Posted September 27, 2021 the answer was this after i create my file sop and read from disk prim = filenode.geometry().prim(0) name = prim.attribValue('name') Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.