Hi there,
I want to do time unit conversion in Maya python, and it seems that the easiest way to do this is with OpenMaya.py and the class MTime. However, when I use the 'as' method like so:
from maya.OpenMaya import MTime
sec = MTime(1,MTime.kSeconds)
print sec.as(MTime.uiUnit())
it gives me a warning:
# :2: Warning: 'as' will become a reserved keyword in Python 2.6
The command does however work. So is there any way around this 'reserved keyword' warning? Either disabling it or changing my syntax would be fine.
Marshall