ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How to setValue to Trapcode particular size over life?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Clifford Li
How to setValue to Trapcode particular size over life?
on Feb 15, 2017 at 3:43:22 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?


Return to posts index

Dan Ebberts
Re: How to setValue to Trapcode particular size over life?
on Feb 15, 2017 at 2:30:22 pm

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

Dan



Return to posts index

Clifford Li
Re: How to setValue to Trapcode particular size over life?
on Feb 15, 2017 at 5:16:31 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


Return to posts index


Dan Ebberts
Re: How to setValue to Trapcode particular size over life?
on Feb 15, 2017 at 5:38:31 pm

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

Dan



Return to posts index

Clifford Li
Re: How to setValue to Trapcode particular size over life?
on Feb 16, 2017 at 3:38:28 am

Nice idea, Thank you Dan


Return to posts index

Clifford Li
Re: How to setValue to Trapcode particular size over life?
on Feb 17, 2017 at 11:08:14 am

Nice idea, Thank you Dan


Return to posts index


Xavier Gomez
Re: How to setValue to Trapcode particular size over life?
on Feb 18, 2017 at 2:59:03 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


Return to posts index

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