Maxscript Traceback errors

Hello! I hope this is clear for anyone who can help me.

The thing here is that I am sending a post job script as a maxscript, which calls functions of another script in python. If I run my pyhton script in the machine at the farm in the 3dsmax, I can debug any error that returns, but if I send the job to deadline and import from Deadline.Scripting import * deadline so I can use the logdebugs, the machine doesn’t return any log. The other strange thing is that if I run my test in the slave machine it doesn’t give my any error, but if I run it with deadline (the Full and complete script), deadline doesn’t return any failure on a line of the called script, but it stills fails and I need to debug.

Thanks in advance,

Sincerely

Marifer Michel

The problem here is that the “Deadline.Scripting” isn’t a pure python module. It’s actually Python.net translating C# code into Python to make it available for you.

Now, internally I believe Max itself is using Python.net as well but the way that Deadline uses Py.net for loading the C# code doesn’t allow it to be interoperable with Max. If you want logging though, Deadline will be reading everything from STDOUT and STDERR from Max, so you can use your regular pythonic functions to do that. The only downside is that it’ll show as STDOUT: instead of being prefixed for you with “Info” or “Warning” like it would be in the render scripts.

Thank you very much, I’ll try it that way!!

Welcome :slight_smile: