-
Link Pin to the Bounding box of a shape layer
Hey guys
I’ve been using CC Bend It on a shape layer, but anytime I try to change position or rotate the shape layer the pin remains still in relation to the comp and I’ve had to manually keyframe the Start and End points with the layer.
I’m trying to get the Start pin to always been center top of the shape (bounding box), and the End pin to always be center bottom.
I’ve tried a few different variations but so far no avail. This is what I’ve got so far… but it’s not even remotely working aha:
//For Start Pin at the center top of the bounding box
var L = thisLayer.sourceRectAtTime(0,true);
var xPos = L.left + thisLayer.width/2;
var yPos = L.top;
[xPos,yPos]//For Start Pin at the center bottom of the bounding box
var L = thisLayer.sourceRectAtTime(0,true);
var xPos = L.left + thisLayer.width/2;
var yPos = L.top + thisLayer.height;
[xPos,yPos]Any direction would be massively appreciated
J