Assigning materials in a macro

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?

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

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


It is working now - thanks Pascal