ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Rendering time increased by 6 times when expression layer is switched on

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Raj Sha
Rendering time increased by 6 times when expression layer is switched on
on Jul 29, 2019 at 9:23:06 pm

Hello Again,

I am coming from this thread:

https://forums.creativecow.net/thread/227/42339

Here Andrei helped me in making an expression to change the color of the text inside parenthesis in a text box.
However, when I render my project in AME, it takes around 18-20 minutes to render in H.264 1080. When I switch off this layer, it hardly takes 2-3 minutes to render entire composition. Can anyone suggest if this is normal, or is there anyway code can be optimized?


Thank You!

var t = text.sourceText;
var splitText = t.split("\r");
var regex = /\(([^)]+)(?=\))/g;

function indexMatched(index){
var matched = false;
var match;
while ((match = regex.exec(t)) !== null){
matched |= match.index<index & indexmaxIndex){
maxIndex += splitText[i].length;
i+=1;
}
return i-2;
}

indexMatched(textIndex+placeInLines(textIndex)) ? 100 : 0;


Return to posts index

Dan Ebberts
Re: Rendering time increased by 6 times when expression layer is switched on
on Jul 29, 2019 at 9:44:38 pm

You might try converting the expression to keyframes before rendering.


Dan



Return to posts index

Raj Sha
Re: Rendering time increased by 6 times when expression layer is switched on
on Jul 29, 2019 at 9:52:38 pm

When I do that, it ignores the words outside parenthesis and change the color of entire sentence.


Return to posts index


Tomas Bumbulevičius
Re: Rendering time increased by 6 times when expression layer is switched on
on Jul 30, 2019 at 8:26:20 am

Try rendering in AE's Render Queue directly and then encode finished video - see if it helps to speed it up.

Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer - Dynamic Text Boxes Template with a Live Preview


Return to posts index

David Cabestany
Re: Rendering time increased by 6 times when expression layer is switched on
on Jul 30, 2019 at 3:59:30 pm

Expressions are calculated in each frame so they tend to bog down projects. If you must keep it on when rendering try disabling the layer cache and purge every 0 frames in the secret preference menu.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]