i'm trying to render scenes with non-alphabetical characters in their names through the python subprocess module, but i get a syntax error from the 3dsmaxcmd.exe.
This is an example, which i want to get working:
popenArgs = ["C:\\Program Files\\Autodesk\\3ds Max 2017\\3dsmaxcmd.exe", "D:/tmp(.max"]
maxProc = subprocess.Popen(popenArgs, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdoutdata, stderrdata = maxProc.communicate()
This prints "Syntax Error: (" and a list of all available commands for the 3dsmaxcmd.exe.
Starting the rendering directly from the command line works fine and rendering D:/tmp.max with the python script works also.
Does someone have an idea what i am missing, when i have special characters like "&" or "(" in the scene path?