Hey Andrei, thanks a lot for your insights!
I was doing almost the same thing, except instead of selecting ‘layer of position’, been directly making selection of position within that layer. While it was the only difference and I was going to celebrate, a bit too early, unfortunately !
The ‘shape path’ in my setup is under this structure:
var curShape = shapeLayer.property(“ADBE Root Vectors Group”).property(“ADBE Vector Group”).property(“ADBE Vectors Group”).property(“ADBE Vector Shape – Group”).property(“ADBE Vector Shape”);
Could this be a case?I tried your direct access without matchnames, and both ways retrieve the same shape object, so I guess it shouldn’t be a problem for shape is built and declared. However, nothing happens.
My assumption is that copying doesn’t occur, because if I debug after copying is made, there are no actionable ‘paste data’. Any ideas why? All layers are deselected, and I am selecting the path as :
shapeLayer.selected = true;
curShape.selected = true;
While debugging, I can see that proper items are selected (the path with stopwatch). But the copying of its data seems to be failing.
Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer – Dynamic Text Boxes Template with a Live Preview
Social Media Profiles