SetObjectScriptLong

External developers... This forum's for you!

SetObjectScriptLong

Postby mrBean » Mon Oct 24, 2011 1:50 am

I'm trying to use SetObjectScriptLong function in my external, but for the life of me, I cant figure out why I'm getting an error -9986 which is — "specified object has no script".

This is how I have been passing the function in my external:
Code: Select all
SetObjectScriptLong(par, objectDesrip, par->params[5]);

objectDesrip is a handle that contains the long id of an object.
par->params[5] is a handle that contains the script I like to set.
User avatar
mrBean
 
Posts: 89
Joined: Sat Jan 30, 2010 8:03 am
Location: New York

Re: SetObjectScriptLong

Postby mrBean » Sat Oct 29, 2011 7:18 am

I found out why I'm getting an error -9986. Apparently if there is no currently existing script for the target object, then SetObjectScript callback will not work. Which in my opinion makes the SetObjectScript callback pointless.
User avatar
mrBean
 
Posts: 89
Joined: Sat Jan 30, 2010 8:03 am
Location: New York


Return to Xcode and the Internals Toolbox

Who is online

Users browsing this forum: No registered users and 1 guest