I have an alias set to:
_NoEcho _PtOffSelected _-Layer New Ref On Ref Color Ref 0,255,0 Lock Ref EnterEnd _-ChangeLayer Ref SetCurrent=No EnterEnd
I use it when I want to make a new, locked reference layer (if one doesn’t already exist) and set objects to it.
The issue is, when used with the - prefix, the ChangeLayer command does not work, with SetCurrent to both Yes and No.
However, it does work when using the dialog box.
Further testing has shown that it may be something with the layers? Since it worked earlier (that’s how I made the other green ref layer) and if I move the existing ref layer out of the parent layers, the command (and thus, my alias) works.
Hi again @vcruzdesigns
I didn’t notice this first time I looked at it, and didn’t understand why I got it working in V8 and not in V7: You need to put the “SetCurrent=No” before your “Ref”-reference, as selecting which layer the obejct(s) will go on, automatically terminates the command - so you can actually leave out the last EnterEnd: _PtOffSelected _-Layer New Ref On Ref Color Ref 0,255,0 Lock Ref EnterEnd _-ChangeLayer SetCurrent=No Ref
HTH, jakob
I tried this as well and no luck. The alias had been working over the last few weeks (but this was when I was only working with 1 un-parented ref layer) and I actually didn’t have the 2nd EnterEnd but I tried adding it to see if it was the issue.
Yep, so it works if there isn’t a layer with the existing name.
However if a same-named ref layer is nested in another one, it doesn’t:
I hadn’t started using multiple ref layers with this alias until today, so I’m pretty sure the problem isn’t with the macro (as it had been working fine for me previously) but with the -ChangeLayer command and something about specifying layer names in the layer tree.
Ah yes - I see! Sorry - My guess is, that you will have to get into scripting for that one, but hopefully someone with more brains will chime in!
-Jakob
No worries, but yeah, I’d much rather not have to get into scripting it lol
Another layer to the mystery (pun not-intended) is that specifying a layer in this specific configuration (as in, one that shares the same name as a child layer) does work with the -DupLayer command for example.