Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Drawing a polyline and moving it to a specific layer

$
0
0

@cosmas wrote:

Good morning friends,

I have a macro that allows me to draw a line and have it automatically move to a specific layer. It is:

! _Line _Pause _Pause _Sellast _-ChangeLayer “reg::.18” _SelNone

(the layer is called .18 and is a sublayer of “reg”).

When I tried to use the same macro for a polyline, however, it failed:

! _Line _Pause _Pause _Sellast _-ChangeLayer “reg::.18” _SelNone

Suspect it has to do with the fact that a polyline might have an unpredictable number of steps. Is there any way to get around this?

Thank you.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles