- January 13, 2021 at 4:14 pm
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? :
-Transform : Group 1
- 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:
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”
9——— Anchor Point
- 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:
– Blend Mode
– Material Options (Only visible for 3D layers in the Cinema 4D rendermode)
- 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.
- January 20, 2021 at 9:49 am
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:
- 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.
Log in to reply.