Ok, now I'm here to bother you smart folk once again...
I have this following script:
((LayerManager.getLayerFromName "100_SS")).current = true
macros.run "Layers" "SceneExplorerSetActiveLayerAsParentLayer"
((LayerManager.getLayerFromName "0")).current = true
It's intended to set my "100_SS" layer as current, move the selected objects to that layer and then set default layer back as current. It works perfect :D
However, I also want to make this more useful by turning it into either a button or keyboard shortcut. I've done this previously with other snippets of code with the following:
macroScript AACollapseLayers
category:"1AAScripts"
toolTip:""
(CODE GOES HERE
This doesn't work. ‎Parenthesis "( )" in the wrong place, or something, but no matter what I try, I can't get this to work. Any tips?
Much appreciated!