-
How do you target a LOWER property within the same shape layer?
I have a series of lines that I want to offset horizontally. Each line is in a group. When I tried to put all the line groups in to a new group called lines, I could not figure out how to target the previous line position. Here is the expression I have that works before I tried to put all the line groups into the new group “lines”. I haven’t used this expression in a while and I have to admit I don’t understand ” thisProperty.propertyGroup(2)(2)(1) “.
Any help is appreciated. I’ve found no coherent explanation targeting lower levels within a layer.
theNextIndex = thisProperty.propertyGroup(2).propertyIndex + 1;
theNextGroupIndex = thisProperty.propertyGroup(3).propertyIndex + 1;
xPos = thisComp.layer(index).content(theNextIndex).transform.position[0] + thisProperty.propertyGroup(2)(2)(1).size[0] + effect("buffer")("Slider");
yPos = value[1];
[xPos, yPos];