ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Global Object usage ($.var), thoughts?

COW Forums : Adobe After Effects

Respond to this post   •   Return to posts index   •   Read entire thread

Walter Soyka
Re: Global Object usage ($.var), thoughts?
on Sep 17, 2019 at 10:44:09 am

[Will Poillion] "What are your thoughts on using it to hold common variables you regularly use in new comps?"

I wouldn't recommend using the global object this way. If you want to stuff a value in there, the expression that creates the value has to be evaluated BEFORE any other frames that rely on it are, and there is no way to ensure that will be the case automatically.

I'd suggest instead creating a comp, null layer, and some expression control effects to hold your "global variables." You can ensure they evaluate simply by referring to them from elsewhere.

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]

Posts IndexRead Thread 

Current Message Thread:

© 2019 All Rights Reserved