mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
Merge pull request #146 from svenneve/master
Add MayaCmd to instance options
This commit is contained in:
commit
5ad007109d
3 changed files with 7 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ class CreateRenderGlobals(avalon.maya.Creator):
|
|||
data["whitelist"] = False
|
||||
data["machineList"] = ""
|
||||
data["pools"] = ""
|
||||
data["useMayaBatch"] = True
|
||||
|
||||
self.data = data
|
||||
self.options = {"useSelection": False} # Force no content
|
||||
|
|
|
|||
|
|
@ -154,4 +154,7 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin):
|
|||
options["extendFrames"] = extend_frames
|
||||
options["overrideExistingFrame"] = override_frames
|
||||
|
||||
maya_render_plugin = "MayaBatch" if attributes.get("useMayaBatch", True) else "MayaCmd"
|
||||
options["mayaRenderPlugin"] = maya_render_plugin
|
||||
|
||||
return options
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
# Arbitrary username, for visualisation in Monitor
|
||||
"UserName": deadline_user,
|
||||
|
||||
"Plugin": "MayaBatch",
|
||||
"Plugin": instance.data.get("mayaRenderPlugin", "MayaBatch"),
|
||||
"Frames": "{start}-{end}x{step}".format(
|
||||
start=int(instance.data["startFrame"]),
|
||||
end=int(instance.data["endFrame"]),
|
||||
|
|
@ -230,6 +230,8 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
render_globals = instance.data.get("renderGlobals", {})
|
||||
payload["JobInfo"].update(render_globals)
|
||||
|
||||
self.log.info("using render plugin : {}".format(payload["JobInfo"]["Plugin"]))
|
||||
|
||||
self.preflight_check(instance)
|
||||
|
||||
self.log.info("Submitting..")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue