ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Script slower at each run

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Fabio Neves
Script slower at each run
on Oct 22, 2019 at 4:47:53 pm

Hello!

I have a data exporter script, that reads all the info I need from my project and export that to an external JSON file.
My project is quite big and every time I run my script it takes more time to finish than the time before, even if I didn't had anything new, a minor change of color or something else is enough. It starts taken 9sec and after a few runs it takes some minutes, which is so boring!

And if I close AE and open it again, it seems that something was cleared up and it is fast again, and take again 9sec to finish.
So, what I want to know is if there is any command that I can run on my script that produces the same result as close-open AE?

(I don't know what it does, but I guess some kind of memory/data clean, no?)


Return to posts index

Dan Ebberts
Re: Script slower at each run
on Oct 22, 2019 at 5:28:08 pm

You could try throwing this in there at the start of your script:

app.purge(PurgeTarget.ALL_CACHES);


Dan



Return to posts index

Fabio Neves
Re: Script slower at each run
on Oct 23, 2019 at 9:54:30 am

Tried that, but no success ☹

In fact, I already tried all the purge options by menu, and none made any effect:


Return to posts index


Fabio Neves
Re: Script slower at each run
on Oct 23, 2019 at 10:47:51 am

Using the ExtendScript toolkit I can data browser, and there is a lot of stuff from javascript there, maybe it is something about it, no?



Is there any way to clear that?


Return to posts index

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