FORUMS: list search recent posts

Expression: How to round to number to an integer

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Paul Roper
Expression: How to round to number to an integer
on Mar 22, 2011 at 4:37:01 pm

Hello

I'm looking for some kind of Math.Round(number) kind of function in Maya...in fact any list of Maya-supported functions would be very helpful! I assume it supports most (all?) C-type functions, but there seems to be very little mention of the syntax or supported commands in the Maya help.

I'm just looking to create an a animation that changes every 3 (or so) frames to give a stuttery appearance. I'd do this in After Effects with:

Math.round(time*12);

where time is the sequence time in seconds (or fractions thereof).

Anyone know how I could achieve the same thing in Maya?

Many thanks,
Paul


Return to posts index


Paul Roper
Re: Expression: How to round to number to an integer
on Mar 22, 2011 at 4:39:27 pm

Ha! A bit of trial and error, and:

int(time)

did the trick!


Return to posts index

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