-
Layer follow problem
Ok so I’ve got this company timeline with kind of a tool tips window that follows along as a pointer moves. The problem is that I need to have the tool tips window stay put until the pointer gets to where it’s going. I control the X position of the pointer with a slider.
Here’s the position code so far:
y = value [1];
val = thisComp.layer(“XSlider”).effect(“Slider Control”)(“Slider”);
follow = val%100;if (follow > 9 < 10) { ease (follow, 9, 10, 0, 10) } else if (follow > 19 < 20) { ease (follow, 19, 20, 10, 20) } // a bunch of other else statements go here for 29 to 30 and so on up to 40 x = value + (follow * 10); [x, y] The problem I'm having is that the else statements don't seem to be working. my tool tips layer hangs at 0 until I get to 9 then smoothly moves from 9 to 10, but when the slider control gets to 19 nothing happens. The marks on the timeline are 100 pixels apart so I multiply the follow distance by 10 I'm probably missing something simple. Maybe this requires a logical operator.