Created
April 2, 2021 21:53
-
-
Save tpoveda/df5cb567cbcc14dc91c5f97d0ab60c9f to your computer and use it in GitHub Desktop.
MotionBuilder - Returns version as year
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import pyfbsdk | |
def get_mobu_version_as_year(): | |
""" | |
Returns current MotionBuilder instance version as year | |
:return: MotionBuilder year version (2019, 2020, 2022 ...) | |
:rtype: str | |
""" | |
return str(int(2000 + math.ceil(pyfbsdk.FBSystem().Version / 1000))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment