Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Locking layers via a script

  • Locking layers via a script

    Posted by Pat Emling on July 15, 2011 at 6:09 pm

    Hey,

    I’m slowly getting a handle on scripting, but I hit a snag.

    I have the script create a Null with a slider and an expression that I ultimately want to be layer locked. Is there anyway to have the script do this automatically? Or is this something that can only be done manually?

    Thanks,

    Patrick

    Pat Emling replied 15 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 15, 2011 at 7:05 pm

    Like this:

    myLayer.locked = true;

    Dan

  • Pat Emling

    July 15, 2011 at 8:07 pm

    Awesome, that’s exactly what I was looking for! Thanks!

    ~Patrick

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