• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

getting "Unable to run script at line 1: syntax error" error?

Community Beginner ,
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
TOPICS
SDK

Views

6.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 30, 2009 Mar 30, 2009

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines