Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expressions for keyframeable Dropdown Properties

  • Expressions for keyframeable Dropdown Properties

    Posted by Andy Kreutzberg on February 24, 2013 at 2:07 pm

    Hello,

    this is a rather quick question. More often than not, you find in effects these drop down selectors for certain properties that are also keyframeable because they have a stopwatch. A good example is the fractal types for the fractal noise or the animation type for the cc particle world. Now if i want an expression to drive any of these, how would i access the individual options properly? For instance, i tried…

    effect(“CC Particle World”)(“Animation”).value[0] to access the first option, which only returns “has no property or method with the name 1”

    effect(“CC Particle World”)(“Animation”)[0] does not return an error, but wont let me go beyond 0 and also does not change the animation method.

    I have tried some other variations but it either seems to be something else entirely or it is not possible to change these with expressions. It’s hard to find something concrete about this online.

    Andy Kreutzberg replied 13 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 24, 2013 at 3:49 pm

    If you wanted to set the Animation type to say, Viscouse, the expression for that property would just be:

    5

    or something that resolves to 5. If you’re trying to access (but not control) the value from another expression, it would be:

    effect(“CC Particle World”)(“Animation”).value

    Is that what you’re asking?

    Dan

  • Andy Kreutzberg

    February 25, 2013 at 10:38 am

    Thanks Dan, that’s exactly what i needed to know. I suppose this will be the same for all keyframeable drop down selections. Never thought that the plain number would do it! Sometimes it’s easier than one would expect.

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