-
valueAtTime ?
ive run into this here and there and just decided to ask about it instead of finding a work around like i usually do. Often when i need a row of objects or a “list” ill add an expression slider to my top layer, then just do a pos index-1+expression slider on the y for example and adjust the slider to spread duplicates of the layer out evenly vertically. So say i have that but now i want to animate the the top layer on the x and have the rest follow with valueAtTime…so now i add an xPos variable looking at index-1 and valueAtTime function added on the end of that. So i end up with this…
x=thisComp.layer(“Menu Item 1”).transform.position[0].valueAtTime(time-thisComp.layer(“Menu Item 1”).effect(“xDelay”)(“Slider”));
y= thisComp.layer(index-1).transform.position[1]+thisComp.layer(“Menu Item 1”).effect(“Button ySpacing”)(“Slider”);
[x,y]but i get an error showing the top line of code and saying “valueAtTime” is “undefinable”…can you not add valueAtTime to a single value of an array or something? And if not what can i do to get what i want?