I am trying to write in this simple code - where it checks the Maya Version, and if it true, it will then executes the following main functions.
This is the code:
if int(mel.eval('about -v')[0:4]) < 2011:
...
Then I was given the following error:
ValueError: invalid literal for int() with base 10: 'Exte'
[Renaming] invalid literal for int() with base 10: 'Exte'
And thus as I run this code to check the Maya version that I have: mc.about( v = True )
, the result displayed is Extension for Autodesk Maya 2014 Service Pack 2 P03
and hence thats the error. I know that last time when I did the same way for version checking, it is displayed as M2014
As such, is there any ways in which I can revert the current version string into 2014?