Assigning materials in a macro


(John Schindler) #1

I am trying to assign a material to an object in a macro. A sample macro to assign it to a selected object is:

-Properties M O R A Thuja

where Thuja in the name of the material in the library. How can I make Rhino recognize this material?


(Pascal Golay) #2

Hi John - one more M (“Material”) will let you name the material.

Like so- ! -Properties Pause Material Object R Material "Thuja" EnterEnd

-Pascal


(John Schindler) #3

It is working now - thanks Pascal