JSX file is re-evaluated every frame for every property it is used (efficiency issue)
JSX files are evaluated on import, this is correct. They are merely a JS expression. But they appear to be evaluated everytime they are used in an Expression. I tested this with this import file:
{
"id": Math.random()
}And in a Text object use this expression:
lib = footage("test_library.jsx").sourceData;
lib.idThe text string changes every frame of the animation, implying the JSX file is reevaluated.
I've tested this across multiple properties, and each one has it's own copy of the import. This actually makes sense, the properties should be isolated. But I'd expect the footage() result to be cached and reused from frame to frame. Otherwise I'll start having efficiency problems when I use the library too much, and/or it grows to more than a trivial set of functions.
