Hi all, I’m trying to script a conform process that includes a series of steps. One of those steps is shooting a movie and then running an external python script on that movie.
I’ve been testing executing python from within a script, and am having a heck of a time getting it working.
The command i’m using works fine when running from a shell - however when I run it using Process2, it doesn’t work. It doesn’t return any errors - it just doesn’t execute anything.
Does anyone have any suggestions? here’s my code (the python script just prints “hiya” to a text file so I can see if it’s working):
//----------------------------------------------------------------------------------------------------
cmd = “C:/Users/Jason/Miniconda3/python.exe “C:/Users/Jason/Nimble/Storyboard Pro/Scripting/tools/testPython.py””
MessageLog.trace(cmd);
p1 = new Process2(cmd);
p1.launchAndDetach();
// print out some helpful results
MessageLog.trace("PID: " +p1.pid());
MessageLog.trace(p1.commandLine());
MessageLog.trace(p1.errorCode());
MessageLog.trace(p1.errorMessage());
//----------------------------------------------------------------------------------------------------
thank you!