Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › How to setValue to Trapcode particular size over life?

  • How to setValue to Trapcode particular size over life?

    Posted by Clifford Li on February 15, 2017 at 3:43 am

    Hi everyone,

    I am writing a script to drive “Trapcode particular” plugin.
    Other properties like “Particles/sec”, I can simply write – property(“Particles/sec”).setValue() to drive the value.
    But the .setValue() not working on “Over Life” type parameter, such as “Size over Life” or “Opacity over life”.

    So, how can I set the value to these “over life” by script?

    Xavier Gomez replied 9 years, 7 months ago 3 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    February 15, 2017 at 2:30 pm

    My guess is that those are a custom data type, so you won’t be able set those with a script.

    Dan

  • Clifford Li

    February 15, 2017 at 5:16 pm

    Hi Dan,

    Coz I found some script at least can set value to pick the “presets” of “size over life”. (It kinda like drop down menu)

    But of course it’s a jsxbin file…
    So I am actually wondering how script can set value to “size over life presets menu”.

    Clifford

  • Dan Ebberts

    February 15, 2017 at 5:38 pm

    Your script could apply a preset (.ffx) that has that parameter specified.

    Dan

  • Clifford Li

    February 16, 2017 at 3:38 am

    Nice idea, Thank you Dan

  • Clifford Li

    February 17, 2017 at 11:08 am

    Nice idea, Thank you Dan

  • Xavier Gomez

    February 18, 2017 at 2:59 pm

    Shot in the dark as i dont have particular:
    Reading your description of the parameter (dropdown), you could try setting the value as an integer (1 for first choice, 2 for 2nd choice, etc):

    myProperty.setValue(2);

    (For dropdown properties, the string is only a display info, what counts internally is the index of the menu item).

    Xavier

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