sorry to bombard with so many questions today, but I've decided to try and advance my QCPlugIn skills :P

In my QCPlugin, I'm loading a plist which has a ton of info, and from that I'm constructing and outputting an NSDictionary, which has 4 arrays of image urls. basically something like:

root (NSDictionary)
 |___ imagesState1 (NSArray of NSStrings)
        |____ url1
        |____ url2
        ...
        |____ url9

 |___ imagesState2 (NSArray of NSStrings)
        |____ url1
        |____ url2
        ...
        |____ url9

 |___ imagesState3 ((NSArray of NSStrings)
        |____ url1
        |____ url2
        ...
        |____ url9

 |___ imagesState4 ((NSArray of NSStrings)
        |____ url1
        |____ url2
        ...
        |____ url9

etc.

then in my QTZ, I separate the 4 arrays with the 'Structure Key Member' patch and send each one to a JavaScript Image pre-cacher to later use in an iterator (as described here http://himiko.dnsalias.net/twiki/bin/view/Main/QuartzComposer#Reading_Images_from_a_directory ) so I have 4 arrays of images (representing states), with a bunch of images in each.

then in an iterator i iterate through a bunch of objects, depending on the state of the object I choose one of the 4 image arrays, and then an image from that array for that particular object (hope this all makes sense).


My question is, if I look in the QC debugger, it seems all the images are constantly being downloaded. What is the easiest way to prevent this? I setup a flag in the QTZ to only send the XML through for the first frame, but that did not work (images aren't loaded). So used an accumulator and multiplexer and only send the XML through for the first second. This works, but I think its very dodgy. Is there a best practice for situations like these?

_______________________________________________
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