Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Iterator: Statut of an index in another one



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@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Iterator: Statut of an index in another one (From: Jean Marc Noel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.