Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions scale a layer in a pre-comp with a null in another comp

  • scale a layer in a pre-comp with a null in another comp

    Posted by Birgit Rathsmann on October 28, 2011 at 6:31 pm

    Hi-

    I’m trying to scale a layer in comp a in relation to a null in comp b.

    I’m applying this expression to the scale value of the layer I need to scale up

    I thought this would do the trick, but I get an error on the first line that says it can’t find compb.

    Does anyone have any illuminating thoughts?

    Thank you so much!!!

    comp("compb").layer("scalenull").transform.scale

    Birgit Rathsmann replied 14 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 28, 2011 at 7:29 pm

    It works for me. Is your comp name exactly “compb”? Any extra spaces in the name or differences in capitalization will make it not work.

    Dan

  • Birgit Rathsmann

    October 28, 2011 at 8:49 pm

    Thanks for checking it out.

    It was actually a different name which was apparently too long.
    There seems to be a character limit on the comp name option in the expression.

    You’re very helpful. Thanks.
    Have a nice weekend.
    Cheerio,
    Birgit

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