Participant
May 23, 2023
Question
Object following trim path
- May 23, 2023
- 2 replies
- 1469 views
Hi
I have a trim path and an object that I would like to follow the tip of the trimpath. I believe something goes wrong with the conversion of layer-posistion to comp-position. Here's the expression i'm using:
var path = thisComp.layer("cable").content("Group 1").content("Path 1").path;
var trimPath = thisComp.layer("cable").content("Group 1").content("Trim Paths 1").end/100;
var targetLayer = thisComp.layer("cable"); var point = path.pointOnPath(trimPath); targetLayer.toComp(point);
