Build Number

Discussion and Support of XMesh, the Geometry Caching System
User avatar
im_thatoneguy
Posts: 1805
Joined: Tue May 20, 2008 2:18 pm
Location: Seattle, WA
Contact:

Build Number

Postby im_thatoneguy » Tue Mar 06, 2018 4:23 pm

Is there a way to identify the current build number for XMesh installed? I don't see it as a Windows Reg key.
Gavin Greenwalt
Gavin[47]SFStudios.com
im.thatoneguy[47]gmail.com

paul
Thinkbox Software
Posts: 1189
Joined: Wed Nov 03, 2010 12:12 pm
Contact:

Re: Build Number

Postby paul » Tue Mar 06, 2018 4:50 pm

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

User avatar
im_thatoneguy
Posts: 1805
Joined: Tue May 20, 2008 2:18 pm
Location: Seattle, WA
Contact:

Re: Build Number

Postby im_thatoneguy » Tue Mar 06, 2018 5:24 pm

Max. But I'm wanting to run it on slave-startup.
Gavin Greenwalt
Gavin[47]SFStudios.com
im.thatoneguy[47]gmail.com

paul
Thinkbox Software
Posts: 1189
Joined: Wed Nov 03, 2010 12:12 pm
Contact:

Re: Build Number

Postby paul » Tue Mar 06, 2018 9:34 pm

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

In Deadline's Python, with .NET available:

Code: Select all

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:

Code: Select all

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?

User avatar
im_thatoneguy
Posts: 1805
Joined: Tue May 20, 2008 2:18 pm
Location: Seattle, WA
Contact:

Re: Build Number

Postby im_thatoneguy » Wed Mar 07, 2018 2:41 pm

Deadline Python works for me. Thanks.

Alternatively:
shell> powershell "(Get-Item 'C:\Program Files\Thinkbox\XMeshLoader MX\3dsMax2018\x64\XMeshLoader.dlo').VersionInfo.ProductVersion"
Gavin Greenwalt
Gavin[47]SFStudios.com
im.thatoneguy[47]gmail.com


Return to “Thinkbox Software - XMesh”

Who is online

Users browsing this forum: No registered users and 1 guest