Jump to content

accessing to the geometry to move points


pelos

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...