-
prevent offseting when connect path to vertex with createPath
Hi!
I’m working inside a shape layer with 3 groups, one is balloon, another is box and another is rope.
Rope should be a line, so I’m connecting both sides of the line to certain vertex up on the balloon and at the bottom on the box.With this code I have no problem as a starting setup:
var pathTOP =content("balloon").content("blue").content("Path 1").path
var pathBOTTOM=content("box").content("Path 1").path
a=(pathTOP.points(time)[5]);
b=(pathBOTTOM.points(time)[3]);TL=[a[0],a[1]]
TR=[b[0],b[1]]createPath(points = [TL, TR], inTangents = [], outTangents = [], is_closed = false);
But I had to move the balloon group, and instead of moving the path vertex, I moved the group. But doing that, the rope path loses the connect to his assigned vertex, due to that offset done with the group re-position
(Same if I want to rotate the box group a bit)Do you know if it’s possible to tweak the code a bit to add some solution similar to toComp so I can move the groups or subgroups where the “balloon” path belongs, and the rope is still following that vertex with no offset?
Thanks!