Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Making multiple versions of a render

Cow Forums : Adobe After Effects Expressions

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
Making multiple versions of a render
by Tim Stonesifer on Nov 18, 2008 at 7:07:58 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

Respond to this post   •   Return to posts index

Re: Making multiple versions of a render
by Dan Ebberts on Nov 18, 2008 at 7:17:54 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



Respond to this post   •   Return to posts index

Re: Making multiple versions of a render
by Tim Stonesifer on Nov 18, 2008 at 7:33:50 pm

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



Respond to this post   •   Return to posts index


Re: Making multiple versions of a render
by Tim Stonesifer on Nov 21, 2008 at 12:01:07 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...



Respond to this post   •   Return to posts index

Re: Making multiple versions of a render
by Dan Ebberts on Nov 21, 2008 at 5:01:59 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



Respond to this post   •   Return to posts index

Re: Making multiple versions of a render
by Tim Stonesifer on Nov 24, 2008 at 8:50:55 pm

Then is there no way to do this?



Respond to this post   •   Return to posts index


Re: Making multiple versions of a render
by Dan Ebberts on Nov 24, 2008 at 9:00:16 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



Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]