mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Patch plug-in payload with settings
This commit is contained in:
parent
c725ff5b42
commit
23e652a51f
2 changed files with 10 additions and 8 deletions
|
|
@ -293,6 +293,7 @@ class CollectMayaRender(pyblish.api.ContextPlugin):
|
|||
"source": filepath,
|
||||
"expectedFiles": full_exp_files,
|
||||
"publishRenderMetadataFolder": common_publish_meta_path,
|
||||
"renderProducts": layer_render_products,
|
||||
"resolutionWidth": lib.get_attr_in_layer(
|
||||
"defaultResolution.width", layer=layer_name
|
||||
),
|
||||
|
|
|
|||
|
|
@ -215,16 +215,21 @@ class MayaSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline):
|
|||
|
||||
renderlayer = instance.data['setMembers'] # rs_beauty
|
||||
|
||||
self.payload_skeleton["PluginInfo"]["RenderLayer"] = renderlayer
|
||||
self.payload_skeleton["PluginInfo"]["RenderSetupIncludeLights"] = instance.data.get("renderSetupIncludeLights") # noqa
|
||||
|
||||
# Output driver to render
|
||||
plugin_info = DeadlinePluginInfo(
|
||||
SceneFile=context.data["currentFile"],
|
||||
Version=cmds.about(version=True),
|
||||
RenderLayer=renderlayer,
|
||||
RenderSetupIncludeLights=instance.data.get("renderSetupIncludeLights") # noqa
|
||||
)
|
||||
|
||||
return attr.asdict(plugin_info)
|
||||
plugin_payload = attr.asdict(plugin_info)
|
||||
|
||||
# Patching with pluginInfo from settings
|
||||
for key, value in self.pluginInfo.items():
|
||||
plugin_payload[key] = value
|
||||
|
||||
return plugin_payload
|
||||
|
||||
def process_submission(self):
|
||||
|
||||
|
|
@ -338,10 +343,6 @@ class MayaSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline):
|
|||
# Store output dir for unified publisher (filesequence)
|
||||
instance.data["outputDir"] = os.path.dirname(output_filename_0)
|
||||
|
||||
# add jobInfo and pluginInfo variables from Settings
|
||||
payload["JobInfo"].update(self.jobInfo)
|
||||
payload["PluginInfo"].update(self.pluginInfo)
|
||||
|
||||
if instance.data.get("tileRendering"):
|
||||
# Prepare tiles data
|
||||
self._tile_render(instance, payload)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue