-
position constrain – AE expression limitations – simple question for experts
Hello,
I’m setting up an IK character and I’m trying to limit the movement of the controller. While doing this, I realized that there is no way to limit the movement of anything user-manipulated.
Let’s take a simple example. I make a solid 10×10 inside a 1920×1080 composition. And I want limit the position of my solid not to go over 1000 horisontally. So, naturally, I add an expression to “position” property:if (transform.position[0] > 1000) [1000, transform.position[1]]; else transform.position;
And naturally it works.. when I use pick tool to move my solid past 1000 horisontally, it stops at 1000. However as I try to move the solid past this point, the “real” x value keeps growing. And if I disable the expression the solid is far beyong 1000.
As far as I understand, this is how expressions are architectured. So basically there are “real values” and values generated by expression. Once expression is acivated, it takes over real values. And apparently expression can’t modify the real values in anyway. Is that correct ? Sorry for lengthy question – I used to develop software myself, and I’m trying to understand how this really works and what are the limitations. Thank you.
M