x


Slow fps of imported animation (maya)

hi I have created a character in maya and animated for various poses in a single file. now after importing the file in unity and after baking its animation, i realized that some of the animations are just too fast for the game. So I wanted to ask u guys that if there is any way to slow down (change fps) some particular animations using fbx importer > split animations, or any other way ?

more ▼

asked May 23 '12 at 10:19 AM

mayank1394 gravatar image

mayank1394
0 4 4 5

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

Maybe the easiest way, from Unity, is using animation.speed.

From the Script Reference:

// Make all animations in this character play at half speed
for (var state : AnimationState in animation) {
    state.speed = 0.5;
} 
more ▼

answered May 23 '12 at 10:20 AM

BiG gravatar image

BiG
4.7k 4 13 49

this one is for all animations, i want to slow down some/selected animations.

May 23 '12 at 10:30 AM mayank1394

That's just an example. The key point is in the use of the speed parameter: if you have an animation called "running", do running.speed = 0.5.

May 23 '12 at 10:47 AM BiG
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x973
x400
x63

asked: May 23 '12 at 10:19 AM

Seen: 706 times

Last Updated: May 23 '12 at 10:47 AM