Visualizzazione post con etichetta scripting. Mostra tutti i post
Visualizzazione post con etichetta scripting. Mostra tutti i post

giovedì 8 luglio 2010

Randomize material and color

These two scripts allow us to assign to a set of projections, three materials randomly.
The first awards three materials of different color, chosen by the user.

intMat = Rhino.AddMaterialToObject (strObj)
Rhino.MaterialColor intMat, RGB(Rx, Gx, Bx)


The second divides the objects in three layers, so you can easily assign many materials defined by user.

Rhino.ObjectLayer strObj, "A"

Fcn_Rnd3Mat 1.rvb

lunedì 12 aprile 2010

Working with colors





A simple script that works with gradient colors.
The colors are imporant to understand the information in complex systems.


rhinoscript syntax used to create this routine are:
Rhino.GetColors ([lngColor])
Rhino.ObjectColor (arrObjects, lngColor)
Rhino.ColorRedValue (lngRGB)
Rhino.ColorBlueValue (lngRGB)
Rhino.ColorGreenValue (lngRGB)

some link:
Kuler is a helpfull tool to create a color theme
RGB - HSL and HSV color model