How to check if MAX download has ended

I am trying to create a program through a python script as follows

os.startfile ("C: / Program Files / Autodesk / 3ds Max 2010 / 3dsmax.exe")

since Max takes a little time to download, I want to wait until it completes the download. I check the task manager to see if "3dsmax10.exe" is on the list, but it is on the list as soon as the process starts (obviously). So, is there a way to find out if it is fully loaded or not?

Any help is appreciated

thank

+3
source share
3 answers

Here is a little hacky (not reliable) solution. Starti 3ds Max with a MAXScript script on the command line. for instance

c:\3dsmax\3dsmax -U MAXScript myscript.ms

Parceval, script MAXScript:

createFile c:\tmp\myfile.txt

Python ( ). :

while not os.path.exists(c:\tmp\myfile.txt):
   time.sleep(1)
+2

. , 3DS MAX , , . .

WinAPI, , . wnd-, .

+1

maxscript script maxhome\Scripts\Startup, , max . script python script com tcp.

+1

Source: https://habr.com/ru/post/1747492/


All Articles