-
Moving a property using script
Hello guys, I hope your doing well !
var comp = app.project.activeItem;
var ccc = comp.selectedLayers;
app.beginUndoGroup(“Dernier Code”);
ccc[0].property(“Contents”).property(1).selected = true;
app.executeCommand(18);
ccc[0].property(“Contents”).property(“Group 50”).selected = true;
app.executeCommand(20);
alert(“Fin”);
app.endUndoGroup();
I have this script which copy and paste a property to a group. It work well if I only want to move a property. But when I use it in a loop to move like 20 – 30 property, after effects becomes extremely slow to a point where it becomes unusable.
So, I’m searching for another way to move the property, does someone have an idea ?
You can see in the picture below what I want to do, it’s only to move the property “10” to the group “Group 50”.
Thank you