Get Nuke version

Reports the Nuke version information

print nuke.NUKE_VERSION_STRING
 
 versionMaj = nuke.NUKE_VERSION_MAJOR
 
 versionMin = nuke.NUKE_VERSION_MINOR
 
 versionRel = nuke.NUKE_VERSION_RELEASE
 
 if versionMaj < 9:
     print "Old version!"
 else:
     print "Newer version!"

Leave a Reply

Your email address will not be published. Required fields are marked *