-
sourceRectAtTime individual group within layer
What is the proper syntax after thisLayer to access individual content groups or paths within a shape layer?
I know how to use sourceRectAtTime to obtain the overall dimensions of a layer, but is it possible to use it to access an individual group of layers within a shape layer? My issue is I have two groups, with multiple shapes beneath each. I want to center my anchor point on only one of the groups. However I am unable to pickwhip any of the contents of my shape layer.
w = thisLayer.sourceRectAtTime(time,false).width;
h = thisLayer.sourceRectAtTime(time,false).height/2;
t = thisLayer.sourceRectAtTime(time,false).top;[w,h+t]