Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dynamically obtain the Based On selection/value of an Expression Selector

  • Dan Ebberts

    March 30, 2025 at 12:26 pm

    I’m not sure if this is what you’re asking, but maybe?

    text.animator("Animator 1").selector("Range Selector 1").advanced.basedOn
  • Roland R. kahlenberg

    March 30, 2025 at 12:35 pm

    Thanks Dan but I’m looking for a solution that uses the propertyGroup method – the Expression is applied to the Amount Property.

  • Dan Ebberts

    March 30, 2025 at 12:45 pm

    For an Expressions Selector? I guess that would be like this:

    thisProperty.propertyGroup(1)(1)
  • Roland R. kahlenberg

    March 30, 2025 at 1:22 pm

    Awesome! Thanks Dan.

    So, for anyone else that wants to get the Based On selection from the Amount Property, for an Expression Selector, it’s
    thisProperty.propertyGroup(1)(1).value

    For a Range Selector
    thisProperty.propertyGroup(1)(2).value

    and for a Wiggly Selector (works for both Min/Max Amount Proeprties)
    thisProperty.propertyGroup(1)(4).value

    Thanks again Dan!

  • Dan Ebberts

    March 30, 2025 at 4:14 pm

    This works as well:

    thisProperty.propertyGroup(1).basedOn
  • Roland R. kahlenberg

    March 30, 2025 at 4:41 pm

    Yup! A universalized code; for all Selector Types.

  • Brie Clayton

    March 31, 2025 at 11:23 pm

    Thanks for solving this, Dan!

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