haikalle Posted January 23, 2019 Share Posted January 23, 2019 Hi! Could someone help me with this. If I use line like this : geo = hou.pwd().geometry() it gives an error: AttributeError: 'Node' object has no attribute 'geometry' Quote Link to comment Share on other sites More sharing options...
toadstorm Posted January 23, 2019 Share Posted January 23, 2019 hou.pwd() refers to the node that's currently being processed, such as when a callback script is running in an HDA. you don't currently have a SOP node that you're running the code on at all. first create a SOP network, then a node, then you can refer to its geometry(). for example: myNode = hou.node("/obj/geo1/box1") myNode.geometry() 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.