Mailing Lists: Apple Mailing Lists

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

simple toggle on render




Hi all,

I'm just getting started with quartz composer and for my first trick, I thought I'd play with some flicker effects. In order to make this somewhat FPS independent I'm looking for a block or patch method to toggle a number (int or boolean) each time the view is rendered.

Suitable generators (e.g. LFO with square wave) seem to have periods in real time. An obvious fudge (using a 0 period or period less than the frame period) doesn't seem to give my intended effect... it correctly samples the specified waveform.

The other obvious approach -- using a Conditional or Logic block looped back on itself -- doesn't seem to be allowed as a valid patch. The same issue seems to preclude using a counter with reset caused by a chained conditional.

My first working attempt is a Counter followed by a Range and then taking the Rolled-Over Value.

Is there a better way? And more generally, is there a general buffer block to allow loops to be formed?

Thanks,
Daniel
_______________________________________________
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


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.