Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Apply pseudo controller to a layer

  • Apply pseudo controller to a layer

    Posted by Tudor Baican on February 2, 2022 at 10:38 pm

    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);

    };

    Tudor Baican replied 4 years, 3 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy