-
valueAtTime on a toWorld orientation grab
Hi,
I am trying to have a footprint animation appear at a certain point along a null layers motion path. I’ve achieved the position part but I am struggling with the orientation. I’m using this code from the great Dan Ebberts(love this guy) and it works as it should, but I only need it’s orientation at the footprint layers inPoint. The footprint appears where I want it to but it continues turning as the null object moves along it’s path. I’ve tried using valuAtTime in various locations in the code but inevitably I end up with a ‘valueAtTime is undefined’ error. Any help with this would be greatly appreciated.
Thanks,
Mikelay = thisComp.layer("foot control");
delta = toWorld(anchorPoint) - lay.toWorld([0,0,0]);
rot = radiansToDegrees(Math.atan2(delta[0],delta[2]));
val = value+rot;
val.valueAtTime(inPoint);