Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Checkbox Control – Lock x-position when checked

  • Checkbox Control – Lock x-position when checked

    Posted by Mathias Kalhauge on March 19, 2018 at 1:41 pm

    I’m trying to make a graph, that can be easily re-used and modified. I’m trying to make it as easy as possible, but I’ve run into a problem.
    I want to be able to lock the x-position of an object (but leaving the y-positiong changable) whenever the checkbox is checked. The problem is that I can’t just write an if/else statement where the “if checked” is a specific value, because I want it to lock the last positional value, and not a predetermined one. I also don’t know what to write at “else”, that will allow me to move the object when the Checkbox Control is unchecked.
    So basically I’m looking for an expression that allows me to lock the y-position value the object had before the box was unchecked.

    I hope I explained this well enough.

    if (thisComp.layer("CTRL").effect("Checkbox Control")("Checkbox")==1) 'I don't know what to put here' else 'or here'

    Mathias Kalhauge replied 8 years, 1 month ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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