Hi Charlie, This is how I would do it with the minimum of patches and no JavaScript (not that it should be avoided).
I'm using a Smooth patch here for the most robust interaction, where potentially the user is changing input values again while the transition is still taking place. Basically, the patch 1. watches for a change in input 2. Sets target alpha to 0 3. Alpha is smoothed down to 0 4. When smoothed output hits 0, the text is updated to match current input using Sample & Hold (as per Achim's suggestion) 5. Target alpha is set to 1 6. Alpha smoothly moves back to 1 I'm not sure what you were doing with the mask etc, I'll leave that bit up to you. Keith On Tue, Nov 2, 2010 at 6:19 AM, Achim Breidenbach <[email protected]> wrote: > Hi Charlie, > > just my two cents: > > - have a look at the "Sample & Hold" patch, which can help you keeping the > old string as long as you needed to fade it out, then switching to the new > text from your string input patch. > > - you properly don't need to create your own mask with the gradient, try to > apply the "Swipe" patch on your text image. > > - maybe it would be much simpler to implement a state machine in a JavaScript > patch instead of doing all the transition controlling in pure QC. > > Best, > > Achim Breidenbach > Boinx Software > > > On 01.11.2010, at 17:49, Charlie Francis wrote: > >> Hi, >> >> I'm currently trying to create a composition that will animate a mask over >> an image, change the text supplied to that image, and then animate the mask >> back. All on a command input. >> >> I have created a composition that does this, but I don't feel that it is >> Robust enough, and it flickers when the text changes. >> The way I would like this to happen is that the first text string is stored >> in a multiplexer as a default value, any time the update string is left >> blank, the animation fades out and replaces it with default value. >> If the string is updated with another value, then the current string should >> fade out and then be replaced by the new string. >> >> I've attached a copy of the test composition I've been working on. I'm still >> a big beginner in this Quartz Animation stuff, so would like to know some >> guidelines on how I can improve my skills! And better ways of setting up >> this type of 'command, fire animation, fire animation, end' stack >> >> Regards, >> Charlie >> <fade_animation.qtz> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Quartzcomposer-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com >> >> This email sent to [email protected] > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Quartzcomposer-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/quartzcomposer-dev/songcarver%40gmail.com > > This email sent to [email protected]
fade_animation-edited-with-smooth.qtz
Description: application/quartzcomposer
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

