mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
baking toggles to precollect instances
This commit is contained in:
parent
83b62aad14
commit
ab68b5ee4f
1 changed files with 12 additions and 1 deletions
|
|
@ -79,6 +79,16 @@ class PreCollectNukeInstances(pyblish.api.ContextPlugin):
|
|||
if "bake_colorspace" in node.knobs():
|
||||
baking = node["bake_colorspace"].value()
|
||||
|
||||
if baking:
|
||||
families.append("bake_viewer")
|
||||
|
||||
viewer_input = True
|
||||
if "bake_viewer_input" in node.knobs():
|
||||
viewer_input = node["bake_viewer_input"].value()
|
||||
|
||||
if viewer_input:
|
||||
families.append("bake_viewer_input")
|
||||
|
||||
# Add all nodes in group instances.
|
||||
if node.Class() == "Group":
|
||||
# only alter families for render family
|
||||
|
|
@ -148,7 +158,8 @@ class PreCollectNukeInstances(pyblish.api.ContextPlugin):
|
|||
"resolutionHeight": resolution_height,
|
||||
"pixelAspect": pixel_aspect,
|
||||
"review": review,
|
||||
"bakeColorspace": baking
|
||||
"bakeColorspace": baking,
|
||||
"bakeViewerInput": viewer_input
|
||||
|
||||
})
|
||||
self.log.info("collected instance: {}".format(instance.data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue