I am currently trying to change the color of selected surfaces with GetObject.
When the object is exploded, there is no problem, my code works, but as long as different surfaces are joined, it colors the whole object.
I’ve used this loop to color the object, and I understand that selecting the RhinoObject is the problem, but I couldn’t find a way to change the color of a BrepFace or simply a Surface (go is my GetObject object).
I am able to retrieve the BrepFace with objRef.Face() and the Surface from the BrepObject but I can’t find any method or attribute that can help me. Any ideas?
Do you want to change the color of a face in a brep/poysurface to a different color than the rest of the brep/polysurface? That is not possible as far as I am aware.
In Rhino 7, you will be able to set individual face colors for a polysurface.
This feature is fairly new in the Rhino WIP, so I don’t have an API that I can reference for you.
In Rhino 6, you can assign individual render materials to a polysurface. Although this feature has been in Rhino 6 for a while, the API was just exposed in the future Rhino 6 SR26.
Hello,is it possible to change some surface color of a closed polysurface now? The purpose is to let workmate know what surfaces are updated/ adjusted. Solidworks workmate can change surface color easily but Rhino cannot. Thanks.
Hello again, it looks like ctrl+shift click cannot assign material on specific surface of a closed polysurface in rendered mode. For example I have a wall of 6 face with one of the faces in different color, and I will need it for high quality rendering for presentation.