I made a little Nuke Gizmo that adds a toggle between color space and a display+view to a Write node.
set cut_paste_input [stack 0]
version 13.1 v1
push $cut_paste_input
Group {
name WriteBake
knobChanged "n = nuke.thisNode()\nk = nuke.thisKnob()\nif k.name() == \"bake\" and k.value() == 1:\n n.knobs()\[\"display\"].setEnabled(True)\n n.knobs()\[\"view\"].setEnabled(True)\n n.knobs()\[\"colorspace\"].setEnabled(False)\nelse:\n n.knobs()\[\"display\"].setEnabled(False)\n n.knobs()\[\"view\"].setEnabled(False)\n n.knobs()\[\"colorspace\"].setEnabled(True)"
selected true
xpos -34
ypos -434
addUserKnob {20 WriteBake l "Write Bake"}
addUserKnob {26 ""}
addUserKnob {41 channels T Write1.channels}
addUserKnob {41 file T Write1.file}
addUserKnob {41 proxy T Write1.proxy}
addUserKnob {41 frame_mode l frame T Write1.frame_mode}
addUserKnob {41 frame l "" -STARTLINE T Write1.frame}
addUserKnob {41 colorspace l "output transform" T Write1.colorspace}
addUserKnob {6 bake l "Bake View + Display" +STARTLINE}
addUserKnob {41 view l "view transform" +DISABLED T OCIO_bake.view}
addUserKnob {41 display l "display device" +DISABLED T OCIO_bake.display}
addUserKnob {26 ""}
addUserKnob {41 views T Write1.views}
addUserKnob {41 file_type l "file type" T Write1.file_type}
addUserKnob {26 "" +STARTLINE}
addUserKnob {41 create_directories l "create directories" T Write1.create_directories}
addUserKnob {41 render_order l "render order" T Write1.render_order}
addUserKnob {41 Render -STARTLINE T Write1.Render}
addUserKnob {41 first l "frame range" T Write1.first}
addUserKnob {41 last l "" -STARTLINE T Write1.last}
addUserKnob {41 use_limit l "limit to range" -STARTLINE T Write1.use_limit}
addUserKnob {41 reading l "read file" T Write1.reading}
addUserKnob {41 on_error l "missing frames" T Write1.on_error}
addUserKnob {41 reload l Reload -STARTLINE T Write1.reload}
addUserKnob {41 read_all_lines l "read all lines" -STARTLINE T Write1.read_all_lines}
}
Input {
inputs 0
name Input1
selected true
xpos -29
ypos -44
}
set N82ce5000 [stack 0]
OCIODisplay {
colorspace scene_linear
display "sRGB - Display"
view "ACES 1.0 - SDR Video"
name OCIO_bake
xpos 101
ypos 78
disable {{"!\[python nuke.executing()]"}}
}
push $N82ce5000
Switch {
inputs 2
which {{parent.bake}}
name Switch1
xpos -29
ypos 78
}
Write {
raw {{parent.bake}}
file_type jpeg
create_directories true
checkHashOnRead false
version 14
name Write1
xpos -29
ypos 186
}
Output {
name Output1
xpos -29
ypos 338
}
end_group