-
Plugins with floating licenses disables calling functions in nested scripts?
Hello
This morning I got the Sapphire plugin installed and suddenly all my functions in my nested scripts were undefined. When copied to the main script everything worked fine…
My question is:
Is there a way around this or is it some kind of “firewall” build into After Effects? It happens on ALL projects – even though I’m not using the Sapphire plugin.I haven’t got the chance to test if the nested scripts works with a valid license because we haven’t got enough for all designers and developers. And this is the way things work around here so a workaround would be greatly appreciated.
Thanks,
Martin/* nestedScript.jsx */{
function testNestedFunction(str)
{
alert("This is a nested function saying: " + str);
}
}/* mainScript.jsx */
{
function loadExternalScript(path)
{
// [1] Create file object for the file you want to run.
var nested_file = new File(path);// [2] Open the file for reading.
nested_file.open("r");// [3] Read the file and evaluate the results.
eval(nested_file.read());// [4] Close the file. That's it!
nested_file.close();
}loadExternalScript("some/path/to/nestedScript.jsx");
testNestedFunction("I'm your function!");
}