mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
adding baking toggle knobs to render node
bake colorspace, bake viewer process
This commit is contained in:
parent
9c21c826a7
commit
c4de365d06
1 changed files with 6 additions and 2 deletions
|
|
@ -544,8 +544,7 @@ def add_rendering_knobs(node, farm=True):
|
|||
Return:
|
||||
node (obj): with added knobs
|
||||
'''
|
||||
knob_options = [
|
||||
"Use existing frames", "Local"]
|
||||
knob_options = ["Use existing frames", "Local"]
|
||||
if farm:
|
||||
knob_options.append("On farm")
|
||||
|
||||
|
|
@ -568,6 +567,7 @@ def add_review_knob(node):
|
|||
if "review" not in node.knobs():
|
||||
knob = nuke.Boolean_Knob("review", "Review")
|
||||
knob.setValue(True)
|
||||
knob.setFlag(nuke.STARTLINE)
|
||||
node.addKnob(knob)
|
||||
return node
|
||||
|
||||
|
|
@ -585,6 +585,10 @@ def add_bake_colorspace_knob(node):
|
|||
knob = nuke.Boolean_Knob("bake_colorspace", "Bake colorspace")
|
||||
knob.setValue(True)
|
||||
node.addKnob(knob)
|
||||
if "bake_viewer_input" not in node.knobs():
|
||||
knob = nuke.Boolean_Knob("bake_viewer_input", "Bake viewer input")
|
||||
knob.setValue(True)
|
||||
node.addKnob(knob)
|
||||
return node
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue