ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Accessing second layer parameter from script

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shanat Kol
Accessing second layer parameter from script
on Sep 25, 2018 at 4:52:01 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!


Return to posts index

Dan Ebberts
Re: Accessing second layer parameter from script
on Sep 25, 2018 at 8:24:17 pm

I don't see any way to access it.

Dan



Return to posts index

James Ronan
Re: Accessing second layer parameter from script
on Sep 25, 2018 at 8:41:52 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.


Return to posts index


Shanat Kol
Re: Accessing second layer parameter from script
on Sep 26, 2018 at 5:34:40 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!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]