pelos Posted January 6, 2013 Share Posted January 6, 2013 is the geometry avaible for modification? i try to move point 0 from a box to a specific position but i do get the error that said that geometry is read only. i am assuming like word documents might be a way to change that. so we can modify the document. >>> node=hou.node('/obj/box') >>> node = node.node("box1") >>> nodeGeo = node.geometry() >>> nodeGeo0 = nodeGeo.iterPoints()[0] >>> nodeGeo0.setPosition([1,1,1]) Traceback (most recent call last): File "<console>", line 1, in <module> File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.125/houdini/python2.6libs\hou.py", line 25745, in setPosition return _hou.Point_setPosition(*args) GeometryPermissionerror: Geometry is read-only. Quote Link to comment Share on other sites More sharing options...
graham Posted January 6, 2013 Share Posted January 6, 2013 You can only modify geometry with Python from inside a Python SOP. Quote Link to comment Share on other sites More sharing options...
pelos Posted January 6, 2013 Author Share Posted January 6, 2013 Ah... and do we have a "python sop" o do we have to create one from the script node? Quote Link to comment Share on other sites More sharing options...
graham Posted January 6, 2013 Share Posted January 6, 2013 http://www.sidefx.com/docs/houdini12.1/hom/pythonsop 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.