Controlling Cube

Danny_J's picture

Hey everyone its been a while since I've been on here and Quartz. I was messing around with a quartz weather bug project of mine and was wondering something simple. How can i rotate and pause the cube to display each side. Right now i have it so the cube is constantly spinning. But i want it to stop and hold for a few seconds. Then start spinning again until it reaches the next side, then stop, hold, spin, repeat.

Comment viewing options

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

cwright's picture
Re: Controlling Cube

Danny_J wrote:
Hey everyone its been a while since I've been on here and Quartz.

Quartz Composer, not Quartz (quartz is a 2D drawing engine in OS X, so saying "Quartz" conveys the other framework).

Danny_J wrote:
I was messing around with a quartz weather bug project of mine and was wondering something simple. How can i rotate and pause the cube to display each side. Right now i have it so the cube is constantly spinning. But i want it to stop and hold for a few seconds. Then start spinning again until it reaches the next side, then stop, hold, spin, repeat.

Timelines can set up fancy animation like that. Otherwise, a nest of Interpolators, LFOs, and smooths might help you out.

pixelnoizz's picture
Re: Controlling Cube

or a multiplexer , type number with 4 inputs (0,90,180,270) and a smooth after the multiplexer. connect one with the x rotation and one with y rotation. if you change the source index of the multiplexer always spin just once. If you want random move, then connect an lfo to the multiplexer source index (random and period like 2), another lfo to the other multiplexer with different period (4).

Danny_J's picture
Re: Controlling Cube

Using the timeline helped creating what i wanted. So did using the multiplexer. However both ways get to a point where the animation just stops. Since this is weather bug is going to appear on screen all day i need the animation to keep going for at least 8 hours. The multiplexer makes the cube spin all the way back to 0 when it goes from the last source to the first again. How can i put them on a loop?

cwright's picture
Re: Controlling Cube

make your timeline last all day ;)

Or, more usefully, make the timeline patch's timebase external, and loop time (using an LFO, or math expression, or whatever).

Danny_J's picture
Re: Controlling Cube

Genius!! Thanks so much for that. Told you i was a bit rusty. I didn't even think to make it a external timebase.... Believe me i was thinking about going down to 8 hours on the timeline. That would of sucked... Thanks again :-)

goto10's picture
Re: Controlling Cube

using a combination of a counter (+1), math (*90) and smooth patches also would allow your setup to run for quite a while...