Skip to content

Instantly share code, notes, and snippets.

@tpoveda
Created April 2, 2021 21:53
Show Gist options
  • Save tpoveda/df5cb567cbcc14dc91c5f97d0ab60c9f to your computer and use it in GitHub Desktop.
Save tpoveda/df5cb567cbcc14dc91c5f97d0ab60c9f to your computer and use it in GitHub Desktop.
MotionBuilder - Returns version as year
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