Copy link to clipboard
Copied
Copy link to clipboard
Copied
I’m having a hard time getting the inTangents and outTangents to work. I have a path with 3 points, and when I add [3] to in tangents and [3] to outTangents I get an error….thoughts?
Arrays start with index 0, not 1. Therefore, when you have 3 elements in the array (inTangents for instance), then the index of the last inTangent is [2], not [3];
Copy link to clipboard
Copied
Thanks Tomas, but lets assume for a minute that i'm an idiot...which I generally am. How do I change my script (referenced in orig post) to account for that?
thx
Copy link to clipboard
Copied
What about this? Im not sure about values for in/out tangents, as it's specific for every case, but here's a general code, that uses some random tangents.
var watchNull = thisComp.layer("Watch null");
var particleMotion = thisComp.layer("Particle Motion");
var null135 = thisComp.layer("Null 135");
var p1 = watchNull.transform.position.value + particleMotion.transform.position.value;
var p2 = null135.transform.position.value;
var p3 = [1460, 0];
var points = [p1, p2, p3];
var inT1 = [-10, 0];
var inT2 = [-10, 0];
var inT3 = [-10, 0];
var inTangens = [inT1, inT2, inT3];
var outT1 = [10, 0];
var outT2 = [10, 0];
var outT3 = [10, 0];
var outTangens = [outT1, outT2, outT3];
createPath(points, inTangens, outTangens, false)
Copy link to clipboard
Copied
Thank you sir....I'll give it a try. Appreciate it.
b
Find more inspiration, events, and resources on the new Adobe Community
Explore Now