how to delete points in a python sop?

   4391   1   0
User Avatar
Member
120 posts
Joined: Feb. 2008
Offline
we have this command for primitives:

geo.deletePrims([geo.prims()])

But I didn't see one for points in the documentation.
How can one delete points in a python sop?
User Avatar
Member
28 posts
Joined: March 2019
Offline
You can use a list like:
node = hou.pwd()
geo = node.geometry()
pointList = []

for point in geo.points():
    pointList.append(point)

geo.deletePoints(pointList)
you can also use a group of points. If you have a group of points called "blastGrp" you can delete those points like so:
geo.deletePoints(blastGrp.points())
Edited by andehpandeh - May 30, 2024 01:11:25
  • Quick Links