god4zilla Posted November 28, 2020 Share Posted November 28, 2020 Hello guys, Im a noob to python and Houdini in general. Now that we've got that out of the way, I am just testing out python, and i tried to create a little task for myself. I made a curve, and brought it into a new geo node, via object merge, and resampled the curve to 5 segments. I am attempting to make a loop, so a box is created on each of the 5 points on the resample node. Is there a way I can access the Px, Py and Pz attributes of the resample node from the geometry spreadsheet using python? I tried the get attribute code but i have received error message upon error message. Thanks! Quote Link to comment Share on other sites More sharing options...
ftaswin Posted December 10, 2020 Share Posted December 10, 2020 node = hou.pwd() geo = node.geometry() points = geo.points() x,y,z = points[0].attribValue("P") 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.