Thanks a lot for your help and support.
I am looking for some help about expressions regarding .shape.
I have a defined a shape layer. Then I have drawed a line, defined by, let's say, 3 points. Then, inside "Contents" I have a "Shape 1" element with all its chars: Path, Stroke etc...
I would like to know what expresions are available for that path (content("Shape 1").content("Path 1").path...) For example, is there any way to refer to any of the three points that define the shape? I have tried .path but it is not a proper sentence.
Thanks a lot for your interest!
You can access individual mask vertices using scripting. For example, you could retrieve the x coordinate of vertex 0 like this:
var myPath = app.project.item(1).layer("Shape Layer 1").property("Contents").property("Shape 1").property("Contents").property("Path 1").property("Path");
var myPathVal = myPath.value;
var myVertex = myPathVal.vertices;
var myX = myVertex;
You can manipulate them by creating a local Shape object and then using setValue() to modify the vertices. It's hard to explain fully, but it's in the Scripting Guide.