Build Number


#1

Is there a way to identify the current build number for XMesh installed? I don’t see it as a Windows Reg key.


#2

Which host application are you using? 3ds Max, Maya, or Nuke?


#3

Max. But I’m wanting to run it on slave-startup.


#4

I’d consider using the win32 GetFileVersionInfo() function.

In Deadline’s Python, with .NET available:

from System.Diagnostics import * version_string = FileVersionInfo.GetVersionInfo(r"C:\Program Files\Thinkbox\XMeshLoader MX\3dsMax2018\x64\XMeshLoader.dlo").FileVersion
Or using Python with pywin32 installed:

import win32api version_info = win32api.GetFileVersionInfo(r"C:\Program Files\Thinkbox\XMeshLoader MX\3dsMax2018\x64\XMeshLoader.dlo", '\\') major = version_info['FileVersionMS'] / 65536 minor = version_info['FileVersionMS'] % 65536
Does that work for you?


#5

Deadline Python works for me. Thanks.

Alternatively:
shell> powershell “(Get-Item ‘C:\Program Files\Thinkbox\XMeshLoader MX\3dsMax2018\x64\XMeshLoader.dlo’).VersionInfo.ProductVersion”