SubD Color Per Face

Hi, I’m currently stuck with grasshopper trying to find a component that allows me to transfer the color per face from a Base SubD to a Target Subd given that both have the exact same topology and the Target subD is the result of a million transformations of the Base subD while preserving always the topology.

I can’t find any component or plug-in able to do this yet and I consider Python is probably the best way to do it, I’ve try to use the info I find here in Rhino Common but clearly I have no Idea of what I’m typing.

can someone please point me towards whats the best way to approach this ?


Color Per face.3dm (1.3 MB)
Perface Color.gh (7.5 KB)

Could it be that this is not an actual object color/material but just a display color you set in the properties when shift+ctrl selecting the SubD face?

If you’re just displaying face colors (not managing/assigning materials) can’t you specify the colors using face indices given your shapes share topology?



Perface Color.gh (29.6 KB)

Of course this is no help if you’re obliged to extract colors directly from the model, and/or if you must keep the SubDs intact, because I exploded them :slight_smile:

Unfortunately, the final object must remain as a SubD, preserving the same topology, mesh structure, and vertex numbering. The output should be a colored SubD per face, not a Grasshopper display visualization. The only non-mandatory aspect is the origin of the colors. However, considering the potential time-saving and flexibility for workflow changes, it’s better to ‘read’ colors from a manually colored SubD. Assigning individual colors per face index or similar can be a bit cumbersome directly in GH.

but thanks alot for your interest, it made me think about the origin of the color.

1 Like