Skip to main content
Participant
March 7, 2022
Question

Link one of the values of dataValue to a control slider

  • March 7, 2022
  • 1 reply
  • 171 views

Hello: I need you to help me. I am using a CSV file to be able to display figures. I need the second variable (1) to be able to link to a control slider. Doing so brings an error.

The goal is to change the value of the values in the CSV list with the slider

footage("Precio Soja AE.csv").dataValue([0,1]) Ok

Footage("Precio Soja AE.csv").dataValue([0,thisComp.layer("Nulo 1").effect("Control del deslizador")("Deslizador")]) FAILURE

 

Can someone tell me what would be the correct way?

    This topic has been closed for replies.

    1 reply

    Mylenium
    Legend
    March 7, 2022

    Sliders produce float values whereas arrays expect exact indices. You need to add a rounding function. also make sure you use correct syntax and spelling. "Footage" is different from "footage". JavaScript is case-sensitive, aftger all...

     

    Mylenium