Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to add effect

  • Script to add effect

    Posted by Phil Spitler on February 9, 2012 at 5:17 am

    I want to add an effect to some layers in an AE script but instead of it adding it to the bottom of the property group, I want to insert it at a set location.

    Like I said, it works great other than it adds the new effect to the bottom of the group.

    Any ideas?

    Thanks.

    Phil

    if (thisEffectName == fxOld) { // found an old effect
    thisEffect.remove();
    currentEffects.addProperty(fxNew);
    }

    Phil Spitler replied 14 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 9, 2012 at 6:29 am

    This should add a slider to the top of the effect stack:

    var myEffect = myLayer.property(“Effects”).addProperty(“Slider Control”);
    myEffect.moveTo(1);

    Dan

  • Phil Spitler

    February 9, 2012 at 6:54 am

    Perfect… Thanks Dan.

    Phil

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