1) If I just run the XSI command prompt and enter the following, I get an error (Syntax Error, it says, and that's literally the whole message). XSI goes through the normal initialization, loading all the plugins, then fails on the script I pass it (the same happens whether I run xsi or xsibatch). The command I'm sending in the command line is this:
Code: Select all
xsi -script F:\path\to\my\script.pys
Code: Select all
Application.CreateProject2(r'F:\path\to\my\new\project')
2) If I try to do all of the above from a script inside Eclipse, I don't even see a console, apart from a brief flash, which probably indicates an error but I can't tell what it is. The code I'm running from inside Eclipse is this:
Code: Select all
import subprocess
script = r'F:\path\to\my\script.pys'
subprocess.Popen(r'C:\Program Files\Autodesk\Softimage 2013\Application\bin\XSIBATCH.exe -script %s' %script )
Anyway, I'm sure it's just my lack of education, so can someone educate me on what I'm doing wrong? Again, the overall goal is to automate the creation of a Softimage project from outside Softimage, without having to directly interact with the command line. I'm working on a PyQt-based project management application for our studio, and the only real hurdle for the project-creation stage is getting a 'dsprojectinfo' file that is unique to that project. Any insight or help is much appreciated!