Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

About Maya Versioning API

About Maya Versioning API

infinity_mt_formula
Observer Observer
276 Views
1 Reply
Message 1 of 2

About Maya Versioning API

infinity_mt_formula
Observer
Observer

when i run this python code

from maya import cmds
print(cmds.about(api=True))

i got

20180400

is it mean that:
2018 => major version?
04 => minor version?
00 => patch version?


am i understand correctly?

Accepted solutions (1)
277 Views
1 Reply
Reply (1)
Message 2 of 2

brentmc
Autodesk
Autodesk
Accepted solution

Yes, that is correct.

It is ordered that way so you can easily compare versions numerically:

if version >= 20180100: # Require 2018.1 or greater

 

Brent McPherson
Principle Engineer