You shouldn't need to do that if you pasted it in as text. Did you possibly put it in instead as a source text expression?
Dan
From: "Drew Gilmore" <dotsandlines@gmail.com>
To: "After Effects Mail List" <AE-List@media-motion.tv>
Sent: Tuesday, September 18, 2012 8:55:05 AM
Subject: Re: [AE] reusing a very large expression
Thanks Dan (and thanks Angie too!)
It took a bit to figure out I needed to pull out comments and white space out of the big expression, and surround the whole thing with quotes, but it's all working now.
Drew
On Tue, Sep 18, 2012 at 10:01 AM, Dan Ebberts
<debberts@comcast.net> wrote:
You could paste the expression into a text layer and then do something like this:
expr = thisComp.layer("expression text").text.sourceText.value;
eval(expr);
Dan
From: "Drew Gilmore" <
dotsandlines@gmail.com>
To: "After Effects Mail List" <
AE-List@media-motion.tv>
Sent: Tuesday, September 18, 2012 7:21:08 AM
Subject: [AE] reusing a very large expression
HI all,
I'm trying to find a way to manage the use of a large expression (roughly 200 lines of matrix math fun that I barely understand, but hey it works!)
Instead of pasting the entire expression into every layer that I need, I'm linking to it with a line like this:
$.evalFile ("Y:/project/crazymath.txt")
And then adding a few additional expressions afterwards, which use the functions in the linked file.
This works well, except it's not very portable. Is there a way to keep that large expression internal to the .aep file, but not have paste the whole mess everywhere I need it?
Drew
--
Drew Gilmore
newtonscannon.comJust a guy made of dots and lines.