FORUMS: list search recent posts

Using Percentage in Expression

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Mostafa Talebi
Using Percentage in Expression
on Nov 22, 2011 at 1:47:48 pm

Hello Everybody


I want to use percentage-based ranges. For example to say something be done in last few frame, it be done in last 20% of the time.

How I should write that?


Return to posts index


Steve Sayer
Re: Using Percentage in Expression
on Nov 23, 2011 at 3:02:09 pm

Well, a percentage is just a value divided by a maximum then multiplied by 100, so just do that. If what you're talking about is the frame range, the formula would be: (current frame) / (max frame) * 100.

So if your animation has 250 frames, and you're at frame 200, that would give (200 / 250 * 100) = 80, so frame 200 is 80% of the way through your timeline.

-Steve


Return to posts index

Mostafa Talebi
Re: Using Percentage in Expression
on Nov 23, 2011 at 4:27:52 pm

Thank you so much COMRADE!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]