Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Use a COMP as a fuction

  • Use a COMP as a fuction

    Posted by Ryan Jones on May 23, 2016 at 3:10 pm

    I’m not sure After Effects can do this but I thought I’d try.

    I love expressions and I use them for everything. However, coming from a C++ background two decades ago, I loved creating functions such as “draw a box using width and height” from the line of code. As an example it would be something like : drawBox(50×10); drawBox(100×100);

    Can you do this with COMPS? I have a 7 layer COMP that is a byline with moveable properties. Rather than copy all 7 layers every time I want to use it, why not just nest it and use a comp that’s a fuction?

    Is that even possible?

    Ryan Jones replied 10 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 23, 2016 at 4:17 pm

    I’m not sure I understand what you mean exactly, but one thing that’s important to remember is that you can’t use expressions to cause different layer instances of the same precomp to render differently.

    Dan

  • Ryan Jones

    May 23, 2016 at 6:21 pm

    but one thing that’s important to remember is that you can’t use expressions to cause different layer instances of the same precomp to render differently

    I think this answers my question. I was just trying to avoid copying the same 7 layers over and over to draw a box with text etc.

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