Does the code below crash QC itself? Or is it only when you add the loop?

I've not had any issues with iterating through arrays, but I've had plenty
of crashes when adding a loop. Usually it's because QC is trying to run the
code while I write it, and it ends up with an infinite loop because it's
trying to run the loop before the break condition is written.

If that's happening, the simple solution is just to stop the viewer, write
the loop, then start again. And save regularly. And beware of saving it
after writing the loop, because if you make a mistake and it crashes loading
it up again becomes rather painful :)

Good luck.

Chris


2010/1/5 David Langford <[email protected]>

> Hey everyone.
>
> Simple question here.
>
> I want to do something like this in the javascript patch
>
> function (__structure outputArray) main (__structure inputArray)
> {
> var result = new Object();
> result.outputArray = inputArray;
>
>         // Loop through outputArray and modify some numbers
>
> return result;
> }
>
> This and others similar seems to always crash Quartz Composer. So i think
> this is telling me it doesn't like it.
>
> Just wondering if there is a way to use the modify the input structure and
> output it before I go and have to make a new array and copy everything into
> it.
>
> Cheers
>
> Lango
>
>  _______________________________________________
> 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/psonice%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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to