Hello again mark. To limit your VAR you need to use Modulo operator also, like this. (#VAR_1#%26)
This will prevent the VAR value from exceeding 26. If you try to increase past 26 then it will roll back to 0. VAR always start at 0 not 1, this is important to know when coding your VARS. Another important thing to know is that if you sync a face and it starts at 0 and you try to decrease from 0 to 26 it doesn’t roll over like it does the other way. Instead it goes to -1 and nothing happens on the screen. If you want the user to be able to go back and fourth not just one way then you need to do it like this. ((#VAR_1#+260)%26)
When doing this you’re actually starting at 260 so if you decrease it will be 259 instead of -1. It will still only have 26 segments though.
Yes it makes sense, but it appears that while I can use modulus or other logic to limit calculated values, I can’t really limit or set VAR_1 (except by the Increment, Decrement and Reset user actions).
The expression you have will return a number from 0 to 4 and will repeat through that cycle as Var1 increases. The addition of the number 260 will not have any impact as it is a multiple of 5. It is not clear what you are trying to achieve with the expression in general and by adding 260 to the variable in particular.
If I have five images that I want to cycle through based on the user’s input, I place a variation of the same expression in the opacity field of each image layer.