PDA

View Full Version : Question: Vibrate expression


smoke
10-02-2003, 05:32 PM
Setup: simple bird like object with three bones in each "wing"

Needed: wings to flap automatically

attempt: using vibrate to set the bones to move

problem: the wings are boned and all is fine, but as soon as I setup the Vibrate the bone goes to 0,0,0

question: how the heck do I stop the object from going to another loaction? I just want it to ocsilate at its correct/current position. Plus I want to be able to move the "bird" without the wings staying in place...

HELP!!!

JIII
10-02-2003, 06:46 PM
my guess is that you should reset the bones with the deformer applied. I haven't even tried this but bones to tend to reset to zero whenyou do things like that to them.

Turn the bones off then apply your vibrate thingy. then turn them back on again, see ifthat works.

JasonOsipa
10-02-2003, 06:55 PM
what you want to do (the most reliable way) is to look at the value of each bone where it starts. Simply add that into your equation.

ie.

If the bone is at 77 degrees in rotateZ before any expressions, you add 77.

So, if your expression looks like (this is just a random guess, of course)

wing.rotateZ=vibrateSource.translateX*vibrateAmount.translateY

then you just have to change it to:

wing.rotateZ=(vibrateSource.translateX*vibrateAmount.translateY)+77

Hope that works! -J.

smoke
10-02-2003, 07:40 PM
well after much playing I found that it works as longs as the Vibrate is not applied to the first bone in the chain (doesn't matter if its an anchor or not

CGTalk Moderation
01-16-2006, 06:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.