Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Lock a layer’s position … when it has an expression

  • Lock a layer’s position … when it has an expression

    Posted by Mel Ruiz on January 16, 2018 at 7:57 pm

    I have positioned text layers based on the changing text box size. I’m creating a template for colleagues to use, so they need to be able to edit the text layers, but I want to lock the position expression so they can’t alter it. Is there a way to do this? The only thing I keep seeing is people suggesting to add an expression to position [10,10], for example, which is not at all what I need.

    Using AE 2017.

    Matt Volp replied 8 years, 3 months ago 3 Members · 3 Replies
  • 3 Replies
  • Mel Ruiz

    January 17, 2018 at 5:46 am

    What I mean is I want people to not be able to edit the position expression or turn it off. I assume this is not something one can do with AE currently.

  • Dan Ebberts

    January 17, 2018 at 7:20 am

    I don’t think there’s any way to do that. You could have the editable text layer just provide the source text to the real text layer (with the position expression) which you have locked, shy’d, and hidden, but that would only deter casual tinkerers.

    Dan

  • Matt Volp

    January 23, 2018 at 4:12 am

    Or you could get the text layers’ source text from markers on another layer, perhaps a null.

    Apply this to the text layer’s source text:

    txt = value;
    n = 0;
    m = thisComp.layer(“Marker Layer”);

    if (m.marker.numKeys > 0){
    n = m.marker.nearestKey(time).index;
    if (m.marker.key(n).time > time) n–;
    if (n > 0) txt = m.marker.key(n).comment;
    }
    txt

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