Select layer parent by name
Having real problems selecting only the layer parent itself (no nodes, just parent).
Looked through the docs and googled it but no real answer! I am basically looking to select a layer i.e "my new layer" then create a nested layer within there named "my nested layer" and add my current selection as an array to the nested layer.
I started to work with myLayer = LayerManager. gerLayerFromName "my new layer"
myLayer.current = true but this just makes the layer active and does not select the layer parent.
Apologies if the formatting of this looks terrible, having Internet issues so having to type all this on my phone :-
Any help would be very appreciated.