-
Changing the order of the properties using extendscript.
Hi there folks.
I am creating a project in which i try to make all the letters of the alphabet as shapes and reveal them using “Trim Paths”. I did the create part and added the Trim Paths. The problem is that i need the Trim Paths to be right before the Merge Paths property in each letter, so all the lines start at the same time. Currently they start consecutively.
I tried something similar to the layer moveBefore function but it does not work.
The example here is for the B character.
The B content consists in 3 Paths. The exterior of the character and the 2 inner shapes.myTrimPath = app.project.activeItem.layer(2)("Contents")("B")("Contents").addProperty("ADBE Vector Filter - Trim");
myTrimPath.moveBefore(app.project.item(19).layer(2)("Contents")("B")("Contents")("Merge Paths 1"));