Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Accessing second layer parameter from script

  • Accessing second layer parameter from script

    Posted by Shanat Kol on September 25, 2018 at 4:52 pm

    Hello, so I am looking into using script to modify the second parameter of a layer information. (outlined in red in the screenshot).

    So far I have this code:

    selectedLayers[i].property(“Effects”).property(“MyEffect”).property(1).SetValue(1);

    which allow me to set the first parameter to the layer I want but I can’t figure out how to modify the second one…

    I need to set it automatically, because if the user keeps that parameter to Source (and not mask) the mask outline doesnt update unless a purge or another change happens, whereas it’s realtime when set to mask…). So I want to force it to Mask ☺

    Anyone knows it if’s possible to do that?

    Thank you very much!

    Shanat Kol replied 7 years, 7 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    September 25, 2018 at 8:24 pm

    I don’t see any way to access it.

    Dan

  • James Ronan

    September 25, 2018 at 8:41 pm

    Yeah as Dan says I don’t think you can. but you could try saving a preset (.ffx) with it already set to Mask, and add that instead.

  • Shanat Kol

    September 26, 2018 at 5:34 am

    That’s pretty much what I had gathered, but I thought I might have been missing something.

    Thank you for confirming and for your help!

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