-
Start and stop parenting at specific time
I have an ellipse (Moon) orbiting another ellipse (Sun) and I want the moon to stop parenting at either a specific time or at a layer marker.
I found the below expression, but struggling to make it work.Is there another time based one, or a layer marker based one? Help??
Thanks,
pickuptime = 1.15;
dropofftime = 2;
layertofollow = thisComp.layer("hook_angle.ai");
ticker = Math.min(Math.max(pickuptime, time), dropofftime);
thisComp.layer("hook_angle.ai").transform.position.value_at_time(ticker)