0
getting "Unable to run script at line 1: syntax error" error?
Community Beginner
,
/t5/after-effects-discussions/getting-quot-unable-to-run-script-at-line-1-syntax-error-quot-error/td-p/1672118
Mar 16, 2009
Mar 16, 2009
Copy link to clipboard
Copied
Hi,
I want to run a script using the AEGP_ExecuteScript() function. but I got an error "Unable to run script at line 1: syntax error". what could be the rea son for this? shall I inlcude anything extra info in my project?
Below is the code ...
char scriptPath[] = "F:\\Documents and Settings\\akshays\\Desktop \\Active Shutter.jsx";
A_Boolean platform_encodingB = 'B';
AEGP_MemHandle outResultPH0;
AEGP_MemHandle outErrorStringPH0;
utilitySuite5->AEGP_ExecuteScript( pluginID, scriptPath, platform_encodingB, &outResultPH0, &outErrorStringPH0 );
please help me.
Thanks
Manjunath
I want to run a script using the AEGP_ExecuteScript() function. but I got an error "Unable to run script at line 1: syntax error". what could be the rea son for this? shall I inlcude anything extra info in my project?
Below is the code ...
char scriptPath[] = "F:\\Documents and Settings\\akshays\\Desktop \\Active Shutter.jsx";
A_Boolean platform_encodingB = 'B';
AEGP_MemHandle outResultPH0;
AEGP_MemHandle outErrorStringPH0;
utilitySuite5->AEGP_ExecuteScript( pluginID, scriptPath, platform_encodingB, &outResultPH0, &outErrorStringPH0 );
please help me.
Thanks
Manjunath
TOPICS
SDK
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Manjunath_Gudisi
AUTHOR
Community Beginner
,
/t5/after-effects-discussions/getting-quot-unable-to-run-script-at-line-1-syntax-error-quot-error/m-p/1672119#M148111
Mar 16, 2009
Mar 16, 2009
Copy link to clipboard
Copied
Forgot to mention, I got the pluginID from like this...
// Get the pluginID
AEGP_GlobalRefcon globalRef=NULL;
const A_char* pluginName = "PNAME";
AEGP_PluginID pluginID;
utilitySuite5->AEGP_RegisterWithAEGP( globalRef, pluginName, &pluginID );
Is the above scripting error because of this?, But I dont think so.
THanks
Manjunath
// Get the pluginID
AEGP_GlobalRefcon globalRef=NULL;
const A_char* pluginName = "PNAME";
AEGP_PluginID pluginID;
utilitySuite5->AEGP_RegisterWithAEGP( globalRef, pluginName, &pluginID );
Is the above scripting error because of this?, But I dont think so.
THanks
Manjunath
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/after-effects-discussions/getting-quot-unable-to-run-script-at-line-1-syntax-error-quot-error/m-p/1672120#M148112
Mar 16, 2009
Mar 16, 2009
Copy link to clipboard
Copied
>char scriptPath[] = "F:\\Documents and Settings\\akshays\\Desktop \\Active Shutter.jsx";
I'm no scripting guru, but aren't you using backward-slashes where forward-slashes should be used?
I'm no scripting guru, but aren't you using backward-slashes where forward-slashes should be used?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Manjunath_Gudisi
AUTHOR
Community Beginner
,
LATEST
/t5/after-effects-discussions/getting-quot-unable-to-run-script-at-line-1-syntax-error-quot-error/m-p/1672121#M148114
Mar 30, 2009
Mar 30, 2009
Copy link to clipboard
Copied
This can be debug by using "ExtendSCript Toolkit 2 and Debugger".
Just open Edit -> Prefernces -> General -> ****
There enable checkbox "Enable javascript debugger".
if you encountering an error while launching the script, then AE will automatically open your script in "ExtendSCript" toolkit with an error at the bottom line. You can see the "DataBrowsing" panel right side for available functions., objects and so on.
then you can get to know what is the error and the reason for this error at least.
Just open Edit -> Prefernces -> General -> ****
There enable checkbox "Enable javascript debugger".
if you encountering an error while launching the script, then AE will automatically open your script in "ExtendSCript" toolkit with an error at the bottom line. You can see the "DataBrowsing" panel right side for available functions., objects and so on.
then you can get to know what is the error and the reason for this error at least.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

