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

Nessun commento:

Posta un commento