Page 1 of 1

Camera Animation by using States

Posted: 27 Feb 2012, 20:39
by DaVince86
I've run into yet another problem... Hope you guys can help!

I've created an animation with different states and each state of course has a different position, tilt and pan value. When I press a certain button from the main menu in my scene, the camera moves from state 1 to state 2. I've done this by binding a a toggle node to the button and to the "next" property of my state animation. Now here is where I run into my little problem. When the same button is pressed again, I want it to move from state 2 to state 1 and NOT state 2 to state 3. So that specific button needs to toggle between state 1 and 2 at all times and ignore the other states. What is the easiest way to set this up?

I still need the other states though (for example if the user presses a different button in the submenu, I DO want the animation to go from state 2 to state 3) So I can't just delete them.

I hope all of this make sense, I confuse myself at the best of times. ;)

Thanks,

Vincent

Re: Camera Animation by using States

Posted: 28 Feb 2012, 10:37
by Daniel Willer
You can customize the State Logic with your own CustomMethods and Rules.
Have a look in the UserManual

Cheers!

Re: Camera Animation by using States

Posted: 28 Feb 2012, 20:27
by DaVince86
Brilliant. Thanks! Yeah sorry the state animation was a whole new concept to wrap my head around but I've finally figured it out.

Thanks again!

Cheers