-
Animating a trading candle with expressions
Hello!
I am engaged in the creation of training videos on trading. I am making an animation for a candle. The “Y” scale of the “Body” shape is tied to the Slider control. I need to bind the “Y” scale of the “Stick” shape so that it grows with the “Body”, but stays in place if the value drops.
The attached gif shows how this should work.
Found the most similar expression, but still not quite the same.
L = thisLayer;
s = transform.scale.value;
while (L.hasParent){
L = L.parent;
for (i = 0; i < s.length; i++) s[1,i] *= 50/L.transform.scale.value[1,i]
}
[s[0], value[1]]
I’d be happy to give advice.