Another issue, I'm using the StoryCaveCam.jsx script to create an artLayer within a layerSet in this folder structure :
The script creates the layer like this : But if I run the script with multiple folders and because I use the index of the top layerSet, it only creates the CAM layer in the top group : I would like the script to create that layer inside the "active" layerSet below the Dialog group like this :
(can't add a third image)
>SQ_00_SH_000_000
>>Dialog layerSet
>>CAM
>>drawing
I could only find the active.artLayer method and no "active.layerSet"... I guess this would probably fix the issue.
that's how the code works :
Code: Select all
var newCamLayer = docRef.artLayers.add()
newCamLayer.name = camName
newCamLayer.move(docRef.layerSets[0], ElementPlacement.INSIDE)
docRef.activeLayer = newCamLayer
Code: Select all
newCamLayer.move(docRef.layerSet.layerSets[0], ElementPlacement.AFTER)
and
newCamLayer.move(docRef.layerSets[0][0], ElementPlacement.AFTER)
Also and lastly, is there a way I could move the backgroundLayer at the bottom of the main layerSet (SQ_00_...) ?
Thanks for your help, I hope this isn't too confusing.
K.