-
Does anyone understand why I’m getting this expression glitch?
I am trying to make a ruler with different length tick marks that I can also animate the distance between the ticks. I set it up so each tick is it’s own layer and the distance between them is controlled by a simple expression on the X Pos and a slider.
It works perfectly, up until I add what seems to be too many ticks. When I add more It glitches in an odd way, where chunks of the ruler move unexpectedly, some disappear from view, and the more I add the more it jumps (almost like a random seed). Originally I thought it was a display error, but the values X Pos values change as well, so something is happening in the calculation.
I restarted, dumped my cache and other the other things I could think of that usually help with glitches. I am running on AE 17.0.6 on a new machine I built so I’m doubting it’s my software or hardware.
Does anyone have any idea what could be the problem or a better solution for what I am trying to achieve? Here is a link to the project if you want to see my setup: https://drive.google.com/file/d/1IMhhh08nqabhNaIRikGt9OyQjsgM9-3Z/view?usp=sharing
On the "X Position":thisComp.layer(index-1).transform.xPosition + thisComp.layer("Control").effect("Distance")("Slider")