Skip to main content
dtrek
Participant
March 10, 2023

Unable to color a stroke from csv data file

  • March 10, 2023
  • 0 replies
  • 103 views

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)