Did you get an exception as well when using this JS code?
.xX

On Nov 20, 2007, at 5:36 PM, Karan Lyons <[EMAIL PROTECTED]> wrote:

There is one solution, which is using the old javascript patch. The support for it is still there, you just need to have an old composition that still has the patch in it. Attached is such a composition. Hope it helps!
<Old Javascript.qtz>

Namaste,
Karan
Karan "The Architect" Lyons: Web Design & Development at Geek Ramblings | Student | Omnigeek contact | email: [EMAIL PROTECTED]| cell: 857-544-9527 | skype: taoofkaran | aim: taoofkaran



On Nov 20, 2007, at 5:21 PM, Alex Drinkwater wrote:

Is it possible to have more than one named output from
a JavaScript module? I can name the inputs without
difficulty, but if I attempt to define more than one
named output, I get errors.

I notice in the Developer Examples folder, example
compositions using the JavaScript patch either have a
single named output, or multiple un-named ones. Is
this a bug or a feature?

The following code:

function (__number input1) main (__number UnitHeight,
__number UnitWidth, __number PixelHeight, __number
PixelWidth)
{
   var result = new Object();


   return result;
}

gives the following error message, and  an error
message at the bottom of the editor window saying
Incorrect or missing "main" function'

- - - - - - - - - - - - - - - - - - - - - - - - - - -

0x00387c82: GFException
0x003898c5: GFThrowException
0x002dbf57: -[GFNode
createInputPortWithArguments:forKey:]
0x002dbd9a: -[QCPatch(Override)
createInputPortWithArguments:forKey:]
0x002debef: -[QCPatch(Wrappers)
createInputWithPortClass:forKey:attributes:arguments:order:]
0x002deb46: -[QCPatch(Wrappers)
createInputWithPortClass:forKey:attributes:]
0x002e901f: -[QCProgrammablePatch
_updateTypes:ports:list:direction:]
0x002e8b6b: -[QCProgrammablePatch setParameterList:]
0x1e5582d2
0x1e555c85
0x002e566c: -[QCProgrammablePatch
recompileSourceOfType:]
0x003d39ca: -[QCProgrammablePatch
setValue:forUndefinedKey:]
0x01e41ac8: _NSSetUsingKeyValueSetter
0x01e4152e: -[NSObject(NSKeyValueCoding)
setValue:forKey:]
0x002e4965: -[QCPatch(StateKeys)
setValue:forStateKey:]
0x003c6d70: -[QCProgrammablePatchView _updateSource:]
0x01e54663: __NSFireTimer
0x00f25b7e: CFRunLoopRunSpecific
0x00f25d38: CFRunLoopRunInMode
0x037608a4: RunCurrentEventLoopInMode
0x037606bd: ReceiveNextEventCommon
0x03760531: BlockUntilNextEventMatchingListInMode
0x0111dd5b: _DPSNextEvent
0x0111d6a0: -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
0x011166d1: -[NSApplication run]

- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -

Any further attempts to edit the code results in the
reappearance of the above error. Oddly, the output
ports all show up, named as specified, but the input
port does not appear.

Anyone any thoughts on how to get this to work?


alx
http://www.toneburst.net


    ___________________________________________________________
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/karan%40geekramblings.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/asabatelli%40apple.com

This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to