GroupBrowser  




Go Back   GroupBrowser > Adobe Product Newsgroups > Adobe After Effects > Expressions
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

Using wiggle expression to build a grungy twitch
Old 08-21-2008, 04:19 PM #1
invisiblerabbit@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Using wiggle expression to build a grungy twitch

Hi all, I've been playing around with Video Copilot's Twitch plugin which, for what it does, is a great addition to using wiggle expressions to create random effects.

However, it lacks the ability to tap into the actual numerical values that its twitch function is generating, which means you can't use it to drive other parameters, like 3D camera position.

What I've been trying to figure out is how to replicate a twitch-like random value using the wiggle function.

If you scroll down to the graph at the bottom of this page, it will explain how the twitch feature differs from the wiggle feature.

<http://www.videocopilot.net/products/twitch/features/>

Rather than smoothly interpolating between values with the given frequency as wiggle does, twitch give random "bumps" separated by flat space the amount of which is influenced by the user defined frequency.

Ideally, what I'd like to do is make a "spastic wiggle" expression which basically works like a twitch with 6 user definable values:

Max Amplitude (the maximum hight of the twitch)
Min Amplitude (minimum height, could be negative)
Ease-In Time (the time it takes a given twitch to build up to its maximum value)
Ease-Out Time (the time it takes the twitch to return to the base value)
Frequency (influences the space between twitches)
Frequency Spread (the amount of randomness allowed within the frequency. Set to 0 the twitches will hit like clockwork, the rate dependent only on the frequency)

By the time I figured out what this needs to do, I don't think it's even based on the wiggle function any more. Can this be done? Thanks in advance for any help you can offer.
  Reply With Quote

Re: Using wiggle expression to build a grungy twitch
Old 08-24-2008, 12:57 PM #2
Mylenium@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: Using wiggle expression to build a grungy twitch

I'm not sure why you wouldn't want to use wiggle() in such a setup. The key point in such a setup would merely be to nest these functions in a way that makes sense. So probably you would create a custom expression control slider to determine the actual "events" and then use code on the actual parameter to modulate a continuous wiggle based around the event. Likewise, you simply would add a third modulation with the ease in, ease out and "is active" ranges. E.g. a simple trigger can be created by using Math.round() on a wiggle limited to a range between 0 and 1. The eases can be determined by cutting the "is active" range in half and determining on which side the active time is, then simply using the ease() methods to remap values. Might take some experimentation and testing to get it working perfectly, but should be absolutely doable.

Mylenium
  Reply With Quote

Re: Using wiggle expression to build a grungy twitch
Old 08-24-2008, 01:52 PM #3
invisiblerabbit@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: Using wiggle expression to build a grungy twitch

Okay, I can see how that would work. Let me start working on that and get back to you guys with the results.
  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Microsoft Newsgroups 1 | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.