FORUMS: list search recent posts

Lock a layer's position ... when it has an expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
mel ruiz
Lock a layer's position ... when it has an expression
on Jan 16, 2018 at 7:57:58 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.


Return to posts index

mel ruiz
Re: Lock a layer's position ... when it has an expression
on Jan 17, 2018 at 5:46:04 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.


Return to posts index

Dan Ebberts
Re: Lock a layer's position ... when it has an expression
on Jan 17, 2018 at 7:20:13 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



Return to posts index


Matt Volp
Re: Lock a layer's position ... when it has an expression
on Jan 23, 2018 at 4:12:59 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]