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?).

Thank you guys! Just wanted to share that I used this to make a Rev Cloud Alias that works great. (at least for me). Probably the longest Alias I’ve made to date.

“_REVCLOUD _C _I _L _.125 _ENTEREND _SELLAST _-PROPERTIES _PAUSE _OBJECT _COLOR _OBJECT 255,0,0 _ENTEREND _SELNONE”

The above requires you to have drawn a rectangle and have it selected. This is a few steps shorter where after typing the alias you draw the rectangle around the item you want to be inside the rev cloud.

_RECT _MULTIPAUSE _SELLAST _REVCLOUD _C _I _L _.125 _ENTEREND _SELLAST _-PROPERTIES _PAUSE _Object _Color _Object 255,0,0 _ENTEREND _SELNONE

1 Like