Skip to content

Commit 3b13f90

Browse files
author
Joseph Yu
committed
Added nuke burn ins, slate and resize options
1 parent 5e92f04 commit 3b13f90

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

hooks/tk-nuke/render_media.py

+19
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,28 @@ def render(
141141

142142
burn.node("slate_info")["message"].setValue(slate_str)
143143

144+
# Disable slate expression if not using it
145+
if not self.__app.get_setting("add_slate"):
146+
chooser_knob = burn.node("slate_or_burnin_chooser")["which"]
147+
chooser_knob.setExpression("")
148+
chooser_knob.clearAnimated()
149+
chooser_knob.setValue(1)
150+
151+
# Disable burn in texts if not using it
152+
if not self.__app.get_setting("add_burn_ins"):
153+
for node_name in [
154+
"top_left_text",
155+
"top_right_text",
156+
"bottom_left_text",
157+
"framecounter",
158+
]:
159+
burn.node(node_name)["disable"].setValue(True)
160+
144161
# create a scale node
145162
scale = self.__create_scale_node(width, height)
146163
scale.setInput(0, burn)
164+
if not self.__app.get_setting("resize_movie"):
165+
scale["disable"].setValue(True)
147166

148167
# Create the output node
149168
output_node = self.__create_output_node(output_path)

info.yml

+15
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ configuration:
4848
as a temporary location for processing before the file is
4949
uploaded to Shotgun.
5050

51+
add_burn_ins:
52+
type: bool
53+
default_value: true
54+
description: Add burn ins when rendering the movie file.
55+
56+
add_slate:
57+
type: bool
58+
default_value: true
59+
description: Add slate when rendering the movie file.
60+
61+
resize_movie:
62+
type: bool
63+
default_value: true
64+
description: Reformat rendered movie using given/default width, height.
65+
5166
movie_width:
5267
type: int
5368
default_value: 1920

0 commit comments

Comments
 (0)