Skip to main content
dtrek
Participant
Mar 10, 2023 3:36 PM UTC
Open for Voting

Unable to color a stroke from csv data file

I am unable to give color nor width the stroke from a line.

I upload the data from a csv file with the following code:

 

var numberOfPoints = thisComp.layer("ISC").effect("num de filas")("Deslizador"); var maxYvalue = thisComp.layer("ISC").effect("max valor Y")("Deslizador"); var inicio = 0; var distanciaEntrePuntos = thisComp.width / (numberOfPoints - 1); var arrayOfPoints = []; for (var i = 0 ; i < numberOfPoints ; i++){ var isc = thisComp.layer('isc.csv').footage('isc.csv').dataValue([1,i]); var lineHeight = linear(isc, 0 , maxYvalue , 0 , thisComp.height ) * -1; var dataArray = [inicio,lineHeight]; arrayOfPoints.push(dataArray); inicio += distanciaEntrePuntos}; createPath(arrayOfPoints , [] , [] , false)