On Jul 15, 2008, at 7:38 AM, Alex Drinkwater wrote:

1. I've been using the JavaScript patch to take a number of input values and create a single output structure. I've managed to do this with __number and __structure (for colors) input types, but haven't been able to do the same for the __image type. Is it not possible to add __images to a structure in this way?

Yes, but you need to create the Array

function (__structure output) main (__image image)
{
        var result = new Object();
        var myArray = new Array();
        myArray.push(image);
        result.output = myArray;
        return result;
}



2. On an unrelated matter, a little bird tells me it's possible to use the ternary operator and do boolean processing in the Mathematical Express patch, but I've been unable to find any documentation on this anywhere. Anyone any pointers on this?


Something like this works for me, do you have a more complicated example that fails?

(a ? b : c)

Troy
 _______________________________________________
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