is there a method to remove the colors of a pointcloud? Current I do it in grasshopper by getting the attributes and replacing the color, but this is quite slow and cumbersome
Hi @crz_06, below is a very simple script to remove pointcloud colors.
#! python 2
import Rhino
import scriptcontext
import rhinoscriptsyntax as rs
def DoSomething():
cloud_id = rs.GetObject("Pointcloud", rs.filter.pointcloud, True, False)
if not cloud_id: return
cloud = rs.coercegeometry(cloud_id, True)
if not cloud.ContainsColors: return
cloud.ClearColors()
scriptcontext.doc.Objects.Replace(cloud_id, cloud)
scriptcontext.doc.Views.Redraw()
DoSomething()
_
c.
2 Likes