Hi Christoph,

also check, if the code lines at the main functions are hard wrapped. If so, 
try to remove the "returns" to make it "no-wrap". There is a parser bug, that 
sometimes occurs like this. The problem is that the comma has to be on the same 
line as the previous parameter:

This gives you a parser-error:

function (__number outputNumber
, __number outputNum2) main (__number inputNumber[2])


No parser error: (just moved the comma to the previous line)

function (__number outputNumber,
 __number outputNum2) main (__number inputNumber[2])


The old JavaScript parser in 10.5.8 don't find an error here, and so, some old 
code which has this "old working style" can't be run under 10.6 because of the 
comma being in the wrong line.

best,

Achim Breidenbach
Boinx Software

On 30.10.2010, at 14:28, Alastair Leith wrote:

> He has javascript code for Quartz Composer version 2 and version 3. You want 
> to make sure you are using version 3 code. You can download a comp with the 
> code too. Mostly they are good from my experience, occasional error. Cybero 
> ported another site — the source is declared on his site somewhere.
> 
> Is there a particular page where the code isn't working. No Main sounds like 
> you're using the QC2 code not QC3 code :-)
> 
> Alastair
> 
> Christoph Kluxen wrote:
> 
>> Hello,
>> 
>> I´m learning Javascript these days and as a beginner I don`t understand how 
>> to copy the QC3 Javascript Patches at http://cybero.co.uk
>> 
>> The default Javascript at Quartz Composer uses a function to define the in 
>> and outputs. The examples from cybero have a checkbox at the top to define 
>> them. If I copy the code into the default javascript its an error:
>> Incorrect or missing "main" function
>> 
>> What`s the trick?
>> 
>> Christoph
>> 
>> 
>> _______________________________________________
>> 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/qc.student.au%40gmail.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/achim%40boinx.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