Notifications
Clear all
[Closed] Unique Sessions IDs for 3dsmax
Jul 20, 2016 1:35 pm
I’m trying to work out the best way to have a unique session ID for each instance of 3dsmax I have open. I’m often working in 3-4 max files at once and I have some tools that write out temporary files that can’t be run simultaneously as they will have read/write issues fighting over the same files.
s = dotNetObject "System.Diagnostics.Process"
aMaxProcesses = (s.GetProcessesByName("3dsmax"))
aMaxProcesses[1].id
I’ve found a way to get a unique session ID integer, but I’ve got to find a way to get the correct process for the max session, I can’t go over .MainWindowTitle as the two sessions could potentially have the same file open.
Any ideas?
3 Replies
2 Replies
Jul 20, 2016 1:35 pm
Could you explain what you mean by:
“but I’ve got to find a way to get the correct process for the max session”