I Want to check the statut of a particular index( ex: the last ) and return it in all the other index (do to some logic boole...) It seems that i need something like a "global variable" in my iterator... perhaps there is a way to do it with javascript ?

To make a global variable, you'll want to calculate its value on the first iteration and output it on subsequent iterations. This is pretty easy to do with javascript.

Here's an example composition that does it:

Attachment: GlobalIteratorVariable.qtz
Description: application/quartzcomposer




However, you can't really check the status of an arbitrary iteration. You can change which iteration the calculation happens on (the currentIndex == 0 part of the scrip can be anything), but then each iteration before that one will have the previous value for a frame. Maybe that's ok for what you need. If not, you'll have to manually calculate each iteration in JS and output the result in question (probably outside the iterator for better performance).

Hopefully this is enough to get you started... :)

--
[ christopher wright ]
[EMAIL PROTECTED]
http://kineme.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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