Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Single precomp multiple times with different texts

  • Single precomp multiple times with different texts

    Posted by Johannes Eichberger on April 4, 2011 at 2:20 pm

    Hi out there,

    I’m neither new to After Effects nor to programming / scripting, but I’m quite new to expressions in AE.

    I’m working on an animation that displays multiple texts one after another, but always with the same animation. The animation is a combination of nested 2D and 3D precomps, where the animated text sits in the deepest layer of those precomps.

    My first thought was that I could solve this task by creating the animation once and then using expressions to change only the text. Therefore, I created an expression in the text precomp, detecting the state of a slider in the master comp, and then put the precomp multiple times into the master comp. Now it happens that it only renders the keyframed animation for the first time the precomp appears in the master comp, all the other times it shows the same animation.

    Does anyone know a way how to use the same animation for multiple texts without duplicating the whole structure of precomps every time?

    Regards,
    silverbeat

    Stefan Hinze replied 14 years, 9 months ago 4 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    April 4, 2011 at 11:58 pm

    There’s no way I know of to make the same pre-comp frame render differently in different instances. Actually, I think that’s one of the main points of a pre-comp — render once.

    Dan

  • Johannes Eichberger

    April 5, 2011 at 8:38 am

    Okay thanks, I was afraid that would be the case. Do you know any other way how it is possible to use the same animation (and the same structure of precomps) with a different text in a deeper-level precomp, without having to duplicate and replace all instances throughout the whole structure of nested precomps?

  • Lloyd Alvarez

    April 5, 2011 at 4:07 pm

    In a node-based compositor that would be very easy but unfortunately not as easy in AE’s comp/pre-comp metaphor. However to make duplicating of large pre-comp trees we thankfully have the True Comp Duplicator script which will duplicate your whole hierarchy instantly to make versioning easy. https://aescripts.com/true-comp-duplicator/

    Cheers,
    Lloyd

    https://aescripts.com

  • Johannes Eichberger

    April 10, 2011 at 6:31 pm

    Thanks a lot for your answer – in the meantime, i have found exactly that script and finished the project using it. It’s not the nicest way, but using a precomp-folder-structure and naming conventions together with that script is a useable and well-arranged compromise i can live with.

  • Stefan Hinze

    August 6, 2011 at 7:10 pm

    Hey there,
    im just in the middle of a project that will be in 4 languages, so i figgured out a way how to deal with this:

    – “MainComp” – Null with Slider Controll
    – “Text PreComp” with the differend languages as text layers !! ONLY ONE FRAME PER LANGUAGE !! As a sequenz, German on frame one, english on frame 2, frensh on three…
    – “MainComp” – Add the “Text PreComp” ad TimeRemap/HoldFrame & pickwip the number of the hold keyframe to the Null with the Slider

    – Dublicate “Text PreComp”, edit the text per PreComp, Alt+Drag on Copy (to keep the time expression), repeat as needed…

    – If you edit the value on the Null (Slider) all the TimeRemap will jump to the next frame and so ALL the text in the animation will go to the next language.

    Was/is a big time saver for me.
    I have all the words in the different languages in one PreComp.
    You could also edit a Background per Word in the PreComp.

    BUT: Check the final render, i run in some layout-issues, becouse of long words in other languages.

    greetz

    …hey there, take a walk, think about it, come back, solve it!

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