-
Value range instead of creating each individual numbers
Hi all!
I am making a path based on data. I’ll have close to a 1000 X and Y points to place on that path once I get the full set. I am using the following expression to create said points using a JSON file with X and Y values. And I will eventually use Vegas or Trim Path or something of that nature to animate the path.
createPath(points = [[thisComp.layer("JSON")("Data")("Outline")("dataOutline 0")("X"),thisComp.layer("JSON")("Data")("Outline")("dataOutline 0")("Y")], [thisComp.layer("JSON")("Data")("Outline")("dataOutline 1")("X"),thisComp.layer("JSON")("Data")("Outline")("dataOutline 1")("Y")], [thisComp.layer("JSON")("Data")("Outline")("dataOutline 2")("X"),thisComp.layer("JSON")("Data")("Outline")("dataOutline 2")("Y")], [thisComp.layer("JSON")("Data")("Outline")("dataOutline 3")("X"),thisComp.layer("JSON")("Data")("Outline")("dataOutline 3")("Y")], [ETC...] inTangents = [], outTangents = [], isClosed = false)Now, is there a way to achieve that without having to create one line for each point with a value range or something of that nature? I have found a way to generate the 1000 lines I would need but I figured there might be a cleaner and probably less taxing on AE way to achieve it?
Or is there a totally different / simpler way you would go about this?
Thank you so much!