Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions position constrain – AE expression limitations – simple question for experts

  • position constrain – AE expression limitations – simple question for experts

    Posted by Mikhail Margolis on September 30, 2008 at 5:41 pm

    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

    Dan Ebberts replied 17 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 30, 2008 at 8:19 pm

    Yes, that’s how it works.

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy