How to limit Interpolate to loop only once? (trying to tween)

sgoberti's picture

I'm new to qc. Trying to recreate the iOS 7 live blur.

I'm trying to smoothly translate a value from 1-100. Interpolate works, but I only want to loop just once. Though there's no option for that. Any ideas?

Also, if possible I want on mouse down to start the interpolate, and on mouse up to stop the interpolate. Help will be greatly appreciated!! :D

Comment viewing options

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

mradcliffe's picture
Re: How to limit Interpolate to loop only once? (trying to ...

Maybe throwing in a Smooth patch would help?

For start/stop you should be able to add a HID Input patch. I am not sure if mouse up/down is the best start/stop. Unless you mean mouse click? Maybe a Keyboard patch would work better with up/down arrow keys?

gtoledo3's picture
Re: How to limit Interpolate to loop only once? (trying to ...

If you highlight the interpolate patch and change it to external time base and also set loop mode to none, you can feed a value to the time base that's 0-1 range and get 1-100 as output. If the value exceeds 1, output should stay at 100.