Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Updated to new slate
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesvink committed Sep 6, 2022
1 parent aee5b3b commit e16bcbe
Show file tree
Hide file tree
Showing 2 changed files with 1,118 additions and 1,028 deletions.
37 changes: 16 additions & 21 deletions python/tk_houdini_flipbook/slate.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
output_node = None

frame_padding = 3
_burnin_nk = os.path.join(appPath, "resources", "burnin.nk")
_font = os.path.join(appPath, "resources", "liberationsans_regular.ttf")
_burnin_nk = os.path.join(appPath, "resources", "nfaSlate.nk")

# create group
group = nuke.nodes.Group()
Expand Down Expand Up @@ -120,7 +119,7 @@ def __get_quicktime_settings():
read = nuke.nodes.Read(
name="source", file_type="jpg", file=input_path.replace(os.sep, "/")
)
read["on_error"].setValue("black")
read["on_error"].setValue("checkerboard")
read["first"].setValue(first_frame)
read["last"].setValue(last_frame)
if color_space:
Expand All @@ -139,24 +138,20 @@ def __get_quicktime_settings():
else:
version_label = "v%s" % version_str

burn.node("top_left_text")["message"].setValue(company_name)
burn.node("top_right_text")["message"].setValue(date_formatted)
burn.node("bottom_left_text")["message"].setValue(file_name)
burn.node("bottom_center_text")["message"].setValue(project_name)

# slate project info
burn.node("slate_projectinfo")["message"].setValue(project_name)

slate_str = "%s\n" % file_name
slate_str += "%s - %s\n" % (first_frame, last_frame)
slate_str += "%s\n" % date_formatted
slate_str += "%s\n" % user_name
slate_str += "v%s\n \n" % version_str
slate_str += "%s\n" % fps
slate_str += "%s\n" % resolution

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

burn.knob("project").setValue(project_name)
burn.knob("company").setValue(date_formatted)
burn.knob("file").setValue(file_name)
burn.knob("date").setValue(date_formatted)

framelist = "%i - %i (%i)" % (first_frame, last_frame, last_frame - first_frame)
burn.knob("framelist").setValue(framelist)
burn.knob("artist").setValue(user_name)
burn.knob("task").setValue(task_name)
burn.knob("version").setValue(version)
burn.knob("fps").setValue(fps)
burn.knob("colorspaceIDT").setValue("Output - sRGB")
burn.knob("colorspaceODT").setValue("Output - sRGB")

# Create the output node
output_node = __create_output_node(output_path)
output_node.setInput(0, burn)
Expand Down
Loading

0 comments on commit e16bcbe

Please sign in to comment.