shadow
Computer
- Mar 1, 2001
- 321
I just figured this out while trying to fix a button macro with lsp in it this is the macro
^C^C^P_AI_molc;^P\-layer;lo;*;u;$m=$(getvar(clayer));^M
what it does is this
make the object layer current then locks all layers then unlocks the current layer
take a closer look at this part
$m=$(getvar(clayer))
this gets the current layer but the key is the () around CLAYER cause befor they were there i had just a,seperating getvar and clayer and the button would not work why you might ask
because the lock layer macro requires the name of the layer to be in "quotes" if it contains spaces and the () around CLAYER does that
and thats the rest of the story if everyone helps everybody the world will be a better place
^C^C^P_AI_molc;^P\-layer;lo;*;u;$m=$(getvar(clayer));^M
what it does is this
make the object layer current then locks all layers then unlocks the current layer
take a closer look at this part
$m=$(getvar(clayer))
this gets the current layer but the key is the () around CLAYER cause befor they were there i had just a,seperating getvar and clayer and the button would not work why you might ask
because the lock layer macro requires the name of the layer to be in "quotes" if it contains spaces and the () around CLAYER does that
and thats the rest of the story if everyone helps everybody the world will be a better place