-
Script to find the value – store it – and use it in an expression
Is there a way to get a script to find a value of property – store it – and then use it when applying it as an expression on a layer?
…..I’ll explain: I have been trying to get a script to look at the [0],[1],[2] values of the position on a selected layer. For example, 100,200,300 lets say. I would then like this data to be stored and accessed in a expression I later apply to the same layer through the script. I would also like the values not to change over time so they are set.
var x = curentLayer.position[0] = ?
var y = curentLayer.position[1] = ?
var z = curentLayer.position[2] = ?curentLayer.position.expression = “setValue[x,y,z] then more expressions in here etc etc”
been trying so many ways now and just cant crack it. Tried valueToTime but I need the value to be set at the stored and set at the value of the separate values if that makes sense. I really hope some one can help out in what ever way because I am sure this is basic but its just grabbing my by the balls at the moment!
Thanks a lot.
Sorry, there were no replies found.