Message 1 of 8
Executing Python scripts from the command line
Not applicable
01-23-2014
10:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to execute my python script from command lind.Inside the script I want to opne a max file and get some information.But I don't want to do that with : 3dsmax -U PythonHost demo.py Since it will show the print message inside MAXScript Listenser instead showing in the cmd console.
Now I execute python script in cmd :
python demo.py
Inside demo.py I use MaxPlus.FileManager to open max file :
MaxPlus.FileManager.Open("D:\test.max")
However when using MaxPlus.FileManager APIs will always cause "Unknown MaxPlus Exception",
Other MaxPlus APIs work just fine ,ex. MaxPlus.Application
Does anyone know what cause the exception?
and How to solve it?
Thank you so much!
