Maya Python Plugin Fileformat Issue

I’ve been struggling to work out how to change the fileformat using the maya deadline python bindings. I have been testing with the mayaSoftware renderer which we wont be using for production however I still want to figure out how to select the fileformat for quick renders. Bellow is a partial listing of the job and plugin settings I’m passing to the deadline submission. I have also tried setting the format in the defaultRendererGlobals where I can visually see it is set to render tiff output.

Thanks ahead of time for any help provided

            JobInfo = {
                "Name": scene,
                "UserName": self.winuser,
                "Frames": self.frameRange,
                "Plugin": "MayaBatch",
                "Group": self.win.groupCombo.currentText(),
                "Pool": self.win.poolCombo.currentText(),
                "Priority": self.win.prioritySpin.value(),
                "MachineLimit": 1,
                "OutputDirectory0": str("%s%s%s" % (str(self.outputdrive),"\\",scene)),
                "OutputFilename0": str(r"%s%s" % (scene,".tif")),
                "Whitelist": str(self.machineLimit),
                }
        
            PluginInfo = {
                "Animation": enableAnimation,
                "UsingRenderLayers": 0,
                "RenderHalfFrames": 0,
                "Renderer": "mayaSoftware",
                "RenderLayer": "",
                "StartupScript": "",
                "FrameNumberOffset": 0,
                "LocalRendering": 1,
                "StrictErrorChecking": 1,
                "MaxProcessors": 0,
                "AntiAliasing":"low",
                "Version": "2016",
                "Build": "64bit",
                "ImageWidth": self.win.widthSpin.value() ,
                "ImageHeight": self.win.heightSpin.value(),
                "ProjectPath": str(self.userworkspace),
                "OutputFilePath": str("%s%s%s" % (str(self.outputdrive),"\\",scene)),
                "OutputFilePrefix": str(scene),
                "SkipExistingFrames": 0,
                "Camera": self.cams[self.selectedCam],
                "Camera0": "",
                "Camera1": "",
                "Camera2": "",
                "Camera3": "",
                "Camera4": "",
                "IgnoreError211":0,
                "SceneFile": cmds.file(q=True, sceneName=True)
                }

So, there seems to be a bit of an issue here.

We usually don’t re-implement features that you’d see in the UI of any of the applications we support (there are exceptions). I dug around the plugin and couldn’t find any place where we override the output format. That means you’ll need to add your own code to the render plugin to support this.

I went ahead and looked into how you could do that, and it doesn’t look like there’s an option from the command line, but this is the melscript for setting it under the “common” tab in “render settings”:

setAttr "defaultRenderGlobals.imageFormat" 32;

This page seems to be more helpful:
joelgvfx.wordpress.com/2012/11/ … at_script/

You can likely add code for setting that at the end of the “GetInitializeCommand()” function in “[repo]/plugins/MayaBatch/MayaBatch.py”, then feed the option you create into the PluginInfo dictionary. I can go into detail there too if you need.

Thanks heaps for the quick reply, racing to get this system setup before the end of the year.
Should be able to implement it with the information you provided.

Good luck!