python setPointFloatAttribValues question

   1711   2   0
User Avatar
Member
3 posts
Joined: 8月 2006
Offline
hello there…


If I have a grid sop connected to a python sop I can modify the incoming grid sop's geometry with setPointFloatAttribValues through hou.pwd().geometry().

However, I'd like to modify two grids.

I've tried,

hou.cd('/obj/geo1/grid2')
geo2 = hou.pwd().geometry()

or

thisnode = hou.pwd()
inputs = thisnode.inputs()
geo2 = inputs.geometry()

and some other methods, but all attempts to edit the second geometry yields ‘GeometryPermissonError: Geometry is read-only.’

How can I modify the second geometry…?
User Avatar
Member
86 posts
Joined: 1月 2009
Offline
You can only modify the geometry coming into your python sop. Could you create an attribute/group on each grid and merge them before your python sop, then edit them both with the python sop and split them apart after based on this attribute/group?
User Avatar
Member
3 posts
Joined: 8月 2006
Offline
Both grid geometries are incoming through input and , respectively. Problem is, it seems only the first of them cooks.

Maybe I have to create two separate sops…
  • Quick Links