How to create path from parented layers using fromComp expression?
Hi,
I created a path based on the positions of two other layers using the fromComp expression (code below). It worked fine until I parented those source layers to null. Once they were parented the position of created shape shifted.
I know it happens because the position is now related to null's position but I don't know how to fix it.
Is there a way to write this code to include this related position?
layNum = thisLayer.name.split("-")[1];
liEx = effect("link-extremes")("Slider");
l1 = thisComp.layer("Left-stripe-"+layNum);
l2 = thisComp.layer("Right-stripe-"+layNum);
p1 = thisLayer.fromComp(l1.transform.position);
p2 = thisLayer.fromComp(l2.transform.position);
createPath([(p1-[liEx,0]),(p2+[liEx,0])], [], [], false);

