# How to remove colors from a pointcloud

**URL:** <https://discourse.mcneel.com/t/how-to-remove-colors-from-a-pointcloud/201047>\
**Category:** Rhino\
**Tags:** mac\
**Created:** [March 10, 2025, 6:42am UTC](https://discourse.mcneel.com/t/how-to-remove-colors-from-a-pointcloud/201047 "2025-03-10T06:42:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfee](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cfee/32/649102_2.png) [@cfee](https://discourse.mcneel.com/u/cfee)\
**Post date:** [March 10, 2025, 6:42am UTC](https://discourse.mcneel.com/t/how-to-remove-colors-from-a-pointcloud/201047/1 "2025-03-10T06:42:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [June 8, 2025, 4:55pm UTC](https://discourse.mcneel.com/t/how-to-remove-colors-from-a-pointcloud/201047/2 "2025-06-08T16:55:14Z")

</div>

Hi @cfee, below is a very simple script to remove pointcloud colors.

```python
#! 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.
