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