Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5804

Get RGB color code from object?

$
0
0

I’m trying to get the RGB colour code of an object that is extracted from a external source.

When I select the object and use rhino.objectcolor it returns a long string of numbers and I cant see what reference this has to an RGB code.

The Code below:

For each strObject in arrObject

If Rhino.IsSurface(strObject)

srfcolour = Rhino.ObjectColor(strObject)

End If

Next

The output I get for srfcolour = 11783547

I would prefer the return to be RGB(X,X,X) for example

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5804

Trending Articles