I’m trying to debug some stuff from the ModoSubmission.py and it would be nice to be able to print out to the console. I’ve tested this out with a print statement but it doesn’t appear to be going to the console in Monitor.
Hmm, print statements should be working…
As an alternative, you can use this:
ClientUtils.LogText( "my text" )
Cheers,
Ryan
Hmm, I forgot to mention that I’m launching from within Modo. So I tried launching the script from within Deadline and I got the following error in the Monitor console:
2014-03-07 10:15:49: Traceback (most recent call last):
2014-03-07 10:15:49: File “DeadlineUI\UI\Commands\ScriptCommands.py”, line 86, in InnerExecute
2014-03-07 10:15:49: Exception: Python Error: IndentationError : (‘unexpected indent’, (‘none’, 68, 5, ’ scriptDialog.AddRow()\n’)) (Python.Runtime.PythonException)
2014-03-07 10:15:49: Stack Trace:
2014-03-07 10:15:49:
2014-03-07 10:15:49:
2014-03-07 10:15:49: at FranticX.Scripting.PythonNetScriptEngine.a(Exception A_0)
2014-03-07 10:15:49: at FranticX.Scripting.PythonNetScriptEngine.ExecuteScript(String scriptName, String script)
2014-03-07 10:15:49: at Deadline.Scripting.DeadlineScriptManager.CreateScopeFromScript(String scopeName, String scriptName, String script, Boolean addGlobalFunctions, Boolean redirectToScriptManagerListener)
2014-03-07 10:15:49: at Deadline.Scripting.DeadlineScriptManager.CreateScopeFromScript(String scopeName, String scriptName, String script, Boolean addGlobalFunctions)
This is from the unedited ModoSubmission.py. I keep all of my edited files separate from the default installs when possible.
Found the error.
Line 68 of the ModoSubmission.py
scriptDialog.AddRow()
This line is indented past the other scriptDialog lines.
So I’m getting the print statement while launching from Monitor but not when I launch from Modo.