Hit Test Grid Values (Composition by gtoledo3)

Author: gtoledo3
License:
Date: 2013.09.07
Compatibility: 10.6, 10.7, 10.8
Categories:
Required plugins:
(none)

This is a composition I made, that came out of some discussion on the QuartzComposer forum on Facebook, that I thought was kind of cool.

It sets up a grid of values, and as you tap on the different values, you'll be able to retrieve what the last value was.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Swiftlikeninja's picture
Re: Hit Test Grid Values (Composition by gtoledo3)

I used something similar for the sequencer test I uploaded a while ago, very well done. I had no idea about the quartz composer Facebook group, joining now.

gtoledo3's picture
Re: Hit Test Grid Values (Composition by gtoledo3)

Cool, I hadn't checked that out.

Since uploading this I remembered the trick of using a modulo (math patch) on the current index of the iterator variables, and whatever you want to be the repeat amount in width or height, and you just increase overall iterations to whatever the amount of total repeats there should be. That way only one iterator has to be used.

(current index(from iterator vars) % tilesWide) * (width/tilesWide)=result (attach to renderer)

Same calc should be done for tiles wide and tiles high, and overall iterations should be tilesHigh * tilesWide ( * tilesDeep if in 3 axises).