Alias macro for setting object color?

I would like to have an alias for setting an object color, eg. “Green”, “Red”.

It’s easy to define as a button, as here by @Helvetosaur

But the alias was a bit trickier.
I tested:
!_-Properties _Object _Color _Object Green _Enter _Enter
Which works well if an object is selected, but without it just goes into an endless loop for some reason.

Is there a solution im not seeing here? An easy fix?

Try this:
! _-Properties _Pause _Object _Color _Object 0,255,0 _EnterEnd
(you need a pause to choose your objects)

I would always specify the color in RGB.

1 Like

Worked like a charm, thank you!
The _EnterEnd was new to me.

It’s just a shorthand for Rhino to put in as many Enters as needed to go back up the command sublevels and finish the command. Sometimes the levels can be nested three deep (or more?).