Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Differentiating Properties by their Property Groups

  • Differentiating Properties by their Property Groups

    Posted by Remi Monedi on October 23, 2018 at 11:16 pm

    Hi,

    Is it possible to differentiate 2 properties with the same name (e.g. “Slider”) without using their index?

    For instance, each “Slider” properties are in a different Property Group : “Group 1” & “Group 2” in an effect “EFFECT”.

    If I’d like to link the “Slider” from “Group 2”, can I differentiate it with something like that? (this won’t work)
    thisComp.layer("LAYER").effect("EFFECT")("Group 2")("Slider")

    Remi Monedi replied 7 years, 6 months ago 3 Members · 4 Replies
  • 4 Replies
  • Alex Printz

    October 24, 2018 at 2:18 pm

    I don’t think so; effect elements stack as layers, the sub-groups inside effects are just peudo-groups that are for usability only but are not used in actual referencing.

    Your best bet would be referencing indexes and relative use, or using a name structure in your effect that you can add/subtract strings from to call sections appropriately.

    Alex Printz
    Mograph Designer

  • Remi Monedi

    October 24, 2018 at 3:24 pm

    Thank you for your answer Alex. I wasn’t sure about the referencing of Property Group names.
    So I guess nothing can be made using a “propertyGroup(x)” expression?

  • Dan Ebberts

    October 24, 2018 at 3:55 pm

    propertyGroup() is useful in navigating a property’s hierarchy, but it I don’t think it helps you in this case because Group 1, Group 2, and both Slider properties are all at the same level in the hierarchy. They are all direct children of the effect itself, which makes them siblings. The appearance of child/parent relationship in the UI is just cosmetic.

    Dan

  • Remi Monedi

    October 24, 2018 at 4:14 pm

    Thank you Dan. I know it now.
    Have a nice day!

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