Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Help please. Property Group Hierarchy.

  • Help please. Property Group Hierarchy.

  • Ahad elshabeb

    January 13, 2021 at 4:14 pm

    Hi

    I have a shape layer (named shape ) with 3 groups in it, named 1,2,3 respectively.

    Each group has 3 shapes ( not a puzzle I swear :p) named 1st, 2nd and 3rd, nested in a group ( named Group 1).

    I am trying to access the name of the shape layers (1, 2, 3) in their properties.

    Am I right in assuming the way propertyGroup behaves? (See picture uploaded)

    var groupIndex = thisProperty.propertyGroup(4).propertyIndex;

    var groupName = thisLayer(“Contents”)(groupIndex).name;

    Is it going 4 levels up to get the hierarchy ?

    In the image I am trying to access the name of the shape layer in the anchor point property.

    Not sure what is the theory here.

    But is the hierarchy working in this way? :

    *shape

    -3

    -3rd

    -Group1

    -Transform : Group 1

    -Anchor Point

  • Ahad elshabeb

    January 13, 2021 at 5:23 pm
  • Filip Vandueren

    January 14, 2021 at 9:14 am

    It is actually going up 6 levels in the hierarchy.

    Every “Group” has an invisible child named “Contents”, everything in the Group is actually a Child of its “Contents” so your hierarchy is:

    1- Shape

    2– Contents (only this top-one is visible in timeline)

    3— Group “3”

    4—- Contents (invisible)

    5—– Group “3rd”

    6—— Contents (invisible)

    7——- Group “Group 1”

    8——– Transform

    9——— Anchor Point

  • Filip Vandueren

    January 14, 2021 at 9:26 am

    BTW, to be clear:

    the Transform and AnchorPoint are NOT inside of “Group 1″‘s Contents, but the Rectangle Path IS inside of Group 1’s Contents.

    Every Group has these subproperties:

    Group:

    – Blend Mode

    – Contents

    – Transform

    – Material Options (Only visible for 3D layers in the Cinema 4D rendermode)

  • Ahad elshabeb

    January 19, 2021 at 12:05 pm

    Hi Filip… Thanks for your reply. It is not working as intended.

    Would you please clarify how would it be 6 levels up if Transform is not in the hidden group contents. Doesn’t it still go up 4 levels to get to Group”3″‘s name.

    Based on the hierarchy you have done, I want to get from level 9 to level 3, skipping the invisible levels 6 and level 4. By that logic anything in rectangle path will go up the 6 levels.

    Am I getting it ?

    I really appreciate you time on this man. Thanks again.

  • Filip Vandueren

    January 20, 2021 at 9:49 am

    Hi Ahad,

    The Transform Property Group is at the same depth as the hidden Contents group.

    So “anchorPoint” has to count “Transform” as 1 level.

    And “Rectangle Path” would have to count invisible “Contents” as 1 level.

    Hope that’s clear.

    I suggest you use the script “gimmeproppath” to inspect the hierarchy.

    The website redefinedy.com where you can find the script is down, but I think you can still download from here:

    http://web.archive.org/web/20201127123358/http://redefinery.com/ae/rd_scripts/

  • Ahad elshabeb

    January 21, 2021 at 10:33 pm

    Many thanks Filip.

    I figured it out by trial and error. I had to go up 4 levels I suggested.

    The hierarchy you wrote was absolutely right . Thanks very much man.

Viewing 1 - 7 of 7 posts

Log in to reply.

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