Heya
We're running into a problem when passing an array of images into QC,
and manipulating those arrays with javascript.

Say I have a composition with a structure input port, and set an
NSArray of CGImageRefs on the port.  That feeds into a javascript
patch, which selects an image to output.

In its simplest form, the javascript looks like :


function (__image someImage) main (__structure inputImages)
{
        var result = new Object();
        if (!inputImages) {
                return result;
        }
        
        result.someImage = inputImages[0];      
        
        return result;
}


Unfortunately, this doesn't work.  The output image is always null -
the input images don't survive their transition to javascript-land and
back.

If I create a structure of images within QC (eg using the Image
Importer patch), and feed that into the javascript (instead of loading
them outside the QCRenderer) then it works fine.

Here's where it gets a bit odd : if I change the javascript's output
type from __image to __virtual, then it works when images are set on
the composition input port, but not for images loaded within QC.

I've tried using arrays of both CGImageRefs & NSImages, both with the
same results.  I notice that images loaded in QC are of type QCImage -
is there any public way of creating those?


Anyone else run into this?

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