Skip to content

Slate burning toggle #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# ---- ignore special files written during config setup
tk-metadata

# compiled python files
*.py[co]

# Packages
Expand Down
19 changes: 19 additions & 0 deletions hooks/tk-nuke/render_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,28 @@ def render(

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

# Disable slate expression if not using it
if not self.__app.get_setting("add_slate"):
chooser_knob = burn.node("slate_or_burnin_chooser")["which"]
chooser_knob.setExpression("")
chooser_knob.clearAnimated()
chooser_knob.setValue(1)

# Disable burn in texts if not using it
if not self.__app.get_setting("add_burn_ins"):
for node_name in [
"top_left_text",
"top_right_text",
"bottom_left_text",
"framecounter",
]:
burn.node(node_name)["disable"].setValue(True)

# create a scale node
scale = self.__create_scale_node(width, height)
scale.setInput(0, burn)
if not self.__app.get_setting("resize_movie"):
scale["disable"].setValue(True)

# Create the output node
output_node = self.__create_output_node(output_path)
Expand Down
15 changes: 15 additions & 0 deletions info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ configuration:
as a temporary location for processing before the file is
uploaded to Shotgun.

add_burn_ins:
type: bool
default_value: true
description: Add burn ins when rendering the movie file.

add_slate:
type: bool
default_value: true
description: Add slate when rendering the movie file.

resize_movie:
type: bool
default_value: true
description: Reformat rendered movie using given/default width, height.

movie_width:
type: int
default_value: 1920
Expand Down