Python sop - copy geometry
4667 4 1- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
- graham
- Member
- 1909 posts
- Joined: Nov. 2006
- Online
The best you can do right now is make use of hou.Geometry.merge(). If you delete all the prims or points, then merge in the geometry from the 2nd input you can get what you are after.
prims = geo.prims()
geo.deletePrims(prims)
geo.merge(hou.pwd().inputs().geometry())
merge(self, geometry)
Merge the points and primitives from another hou.Geometry object
into this one. The new points and primitives are appended to this
geometry's points and primitives. You would typically call this
method from the code of a Python-defined SOP.
Raises hou.GeometryPermissionError if this geometry is not
modifiable.
prims = geo.prims()
geo.deletePrims(prims)
geo.merge(hou.pwd().inputs().geometry())
merge(self, geometry)
Merge the points and primitives from another hou.Geometry object
into this one. The new points and primitives are appended to this
geometry's points and primitives. You would typically call this
method from the code of a Python-defined SOP.
Raises hou.GeometryPermissionError if this geometry is not
modifiable.
Graham Thompson, Technical Artist @ Rockstar Games
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
- rdg
- Member
- 401 posts
- Joined:
- Offline
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
-
- Quick Links