-
Apply pseudo controller to a layer
Hello friends,
I’m trying to apply my pseudo controller to a layer.
So far so good, it works but if select maybe 2 properties I get two times the the preset applied but my var myProperty is only limited to the last selection.
Thanks for your help.
var myProperty = app.project.activeItem.selectedProperties[mySelectedProperties.length-1];
var myLayer = myProperty.propertyGroup(myProperty.propertyDepth);
var myPreset = File("/myPseudoFx.ffx");
var hasController = false;
for(var i=1; i<=myLayer.property("Effects").numProperties; i++){
if(myLayer.property("Effects").property(i).name == "myPseudoFx"){
hasController = true;
};
};
if(!hasController){
myLayer.applyPreset(myPreset);
};
Sorry, there were no replies found.