Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Making multiple versions of a render

  • Making multiple versions of a render

    Posted by Tim Stonesifer on November 18, 2008 at 7:07 pm

    I’ve posted this problem a while ago, but got no responses. Hopefully somebody more versed in scripting than myself has a solution…

    I have an slider control in my comp, that when changed will affect the content of the comp itself. There will be 336 versions of this comp to be made. Is there a way to either automatically create 336 different renders, each with the variable incremented by 1? Or, is there a way to automatically make 335 copies of this comp, again with the variable being incremented by 1?

    It seems daunting to do this all manually – If anyone has any ideas, I would greatly appreciate them!

    Tim

    Dan Ebberts replied 17 years, 8 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    November 18, 2008 at 7:17 pm

    If you named your first comp something like this:

    myComp_1

    and add an expression like this to your slider:

    s = thisComp.name.split(“_”);
    offset = 0 + s[s.length-1] – 1;
    value + offset

    then duplicate the comp in the project bin, the slider in each successive comp (myComp_2, etc.) will be incremented by one.

    Hope that’s what you were after. You could also do it with a script, but this is probably easier.

    Dan

  • Tim Stonesifer

    November 18, 2008 at 7:33 pm

    That looks like it’s exactly what I need. Thanks Dan!

  • Tim Stonesifer

    November 21, 2008 at 12:01 am

    Hm. I thought that would fix it, but I failed to mention that I have nested comps creating data based on that variable in “Main_1”. So even though Main_2 has that one variable changed, the nested comps are still pulling values off information from Main_1…

  • Dan Ebberts

    November 21, 2008 at 5:01 am

    I’m not entirely sure this relevant to your situation, but it’s importatnt to know that you can’t have a precomp behave differently depending on which comp it’s nested in.

    Dan

  • Tim Stonesifer

    November 24, 2008 at 8:50 pm

    Then is there no way to do this?

  • Dan Ebberts

    November 24, 2008 at 9:00 pm

    Well, you could duplicate all the comps in the chain and give them unique names. If you’re clever with your naming scheme, you can have your expressions find the parent comps based on the name of the comp that the expression is in. For example, expressions in SubComp_5 would look for values in ParentComp_5. I’m not sure if that helps your situation or not.

    Dan

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