craigls Posted October 12, 2021 Share Posted October 12, 2021 IM trying to get the paths of all the geometry from and alembic I threw into a convert node, and print them out. Not working though, can someone help? this =hou.pwd() print (this) geo = hou.node(this.path() + '/obj/geo1/Splitter/convert1') print (geo) path = geo.attribValue('path') print (path) Quote Link to comment Share on other sites More sharing options...
animatrix Posted October 12, 2021 Share Posted October 12, 2021 Hi Craig, You can iterate over prims to do that: node = hou.pwd() geo = node.geometry() for pr in geo.prims(): print pr.attribValue("path") Quote Link to comment Share on other sites More sharing options...
ftaswin Posted October 12, 2021 Share Posted October 12, 2021 Convert sop does not retain path attribute. Unpack the alembic first with keep attribute “path” Quote Link to comment Share on other sites More sharing options...
craigls Posted October 26, 2021 Author Share Posted October 26, 2021 (edited) Thanks Animatrix, I tried what you suggested, but Im getting an error that the node object has no attribute 'geometry' I have put an unpack node under the alembic, and set the display flag to it. Edited October 26, 2021 by craigls 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.