AWS Thinkbox Discussion Forums

Adding -nocrashhandler flag to cinema4D submission plugin

I’d like to add the -nocrashhandler command line arg (image attached) into the c4d submission plugin. I tried to hack it into the SubmitC4DToDeadline.py file & eventually got stuck here, around like 873:

[code] pluginInfoFile = self.DeadlineTemp + “/c4d_plugin_info.job”
# pluginInfoFile = ‘Z:/Public/Users/rmatto/cinema4D/c4d_plugin_info.job’
fileHandle = open( pluginInfoFile, “w” )
if not submitScene:
fileHandle.write( “SceneFile=%s\n” % sceneFilename )
fileHandle.write( “Version=%s\n” % (c4d.GetC4DVersion() / 1000) )
fileHandle.write( “Build=%s\n” % build )
fileHandle.write( “Threads=%s\n” % threads )
fileHandle.write( “Width=%s\n” % width )
fileHandle.write( “Height=%s\n” % height )
fileHandle.write( “LocalRendering=%s\n” % localRendering )

            if saveOutput and outputPath != "":
                head, tail = os.path.split( outputPath )
                fileHandle.write( "FilePath=%s\n" % head )
                fileHandle.write( "FilePrefix=%s\n" % tail )
                
            if saveMP and mpPath != "":
                head, tail = os.path.split( mpPath )
                fileHandle.write( "MultiFilePath=%s\n" % head )
                fileHandle.write( "MultiFilePrefix=%s\n" % tail )
            
            fileHandle.close()[/code]

I don’t see an obvious way of adding more of these KVPs in a legit way to the description for the plugin_info.job file. Am I missing something obvious? Is there a way to do this through the UI? If not, I’d love a little guidance hacking this in. I can keep hacking myself, but it may get ugly. Basically I’m just looking for a way to add arbitrary extra command line arguments to any plugin’s command like arguments list. You guys must have something like that built in already, right?

Cheers,
Raphael

The command line arguments are built up in the C4D plugin, so you can edit that file directly (\your\repository\plugins\Cinema4D\Cinema4D.py).

I wonder if we should just hard code this option in ourselves. Do you foresee any issues with always having this flag set?

Hi
Take a look in the “RenderArgument” function in the plugin. Just add argument += " -nocrashhandler" after the argument = " -nogui" line.

Cheers
Bonsak

Thanks Ryan & Bonsak! I knew it was something simple. & this opens up a whole world of options for me w/the other submission plugins, thanks!

Privacy | Site terms | Cookie preferences