Skip to content
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

Need to merge latest release with our custom #25

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bc65ccf
updating to studio falvor - not including DL
daawaa Jul 28, 2017
3fd3733
removed farm render
daawaa Jul 28, 2017
2b8a907
cleaned up context finding
daawaa Aug 11, 2017
cf8e6f6
remove general fields dict - now works off Asset/Shot
daawaa Aug 15, 2017
eb015e4
opened up version naming for Assets
daawaa Aug 16, 2017
8d0963a
Fixed asset output setup
daawaa Aug 16, 2017
64a996f
Removed ZIP compression
daawaa Aug 17, 2017
206f3e1
Adding cleanup as an option to the write node
daawaa Aug 21, 2017
ef51945
rolling back that all renders go to 250
daawaa Aug 23, 2017
ba0eca8
added Final write type and reverted EXRs to be rgb
daawaa Aug 29, 2017
bac5096
Fixed cmp_Comp problem. Also remembers write type for SG node conversion
daawaa Aug 30, 2017
5249d25
Added file tester for output location
daawaa Aug 31, 2017
4fd4ac2
added info button for write types/ normalised copied path
daawaa Aug 31, 2017
ab97071
added a window friendly version of the copy paths
daawaa Sep 21, 2017
454d9b4
Added project specific output format settings. Also ticked 'fill' on …
daawaa Sep 27, 2017
40f98d8
Swapped SSVFX to JKRY
daawaa Sep 27, 2017
cc737d2
DPX default now to Cineon. cleaned up current context
daawaa Sep 28, 2017
0237f43
Added embeded timecode info
daawaa Sep 29, 2017
135d25d
Added feature that saves the users input to the tank_channel
daawaa Oct 5, 2017
2dadb09
updated tank_channel name dissappearing. Removed login
daawaa Oct 17, 2017
fab09b7
element/precomp default to rgba
daawaa Oct 24, 2017
acccd3a
Adjusted time code to take in first rame value
daawaa Oct 24, 2017
6a721b7
setting EXR for precomps, element and denoise
daawaa Dec 1, 2017
8163acf
added cleanup EXR also
daawaa Dec 1, 2017
4e0aa9c
Update for Roto. Output will have RLE compression for smaller RGB out…
daawaa Jan 11, 2018
6912fd2
Setting up same EXR compression for test
daawaa Jan 11, 2018
0607801
Updated roto version to ZIP/16 bit half and rgba
daawaa Jan 11, 2018
c949cdb
Added explicit vals for projects
daawaa Feb 13, 2018
0c7de3b
zip1 compression on precomp/denoise/cleanup/element exrs
daawaa Feb 22, 2018
bdf6536
fixed when changing beween Precomp(etc.)/Version
daawaa Feb 22, 2018
a0eed36
fixed compressions error
daawaa Feb 22, 2018
9d5ea2e
Set Cleanup to DPX for Fav
daawaa Feb 27, 2018
d46bd98
fix error with dpx bit
daawaa Feb 27, 2018
0faf150
removed tprint
daawaa Feb 27, 2018
280939e
removed script based access
daawaa Mar 16, 2018
eb7b4b8
added new proj TC
daawaa Apr 3, 2018
b6caee7
turning off sg connection
daawaa Apr 17, 2018
759c91c
fixed problem where channels value is lost at conversion
daawaa Apr 25, 2018
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
16 changes: 7 additions & 9 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ def get_node_render_template(self, node):
"""
Return the render template for the specified node
"""
return self.__write_node_handler.get_render_template(node)
write_type = self.__write_node_handler.get_node_write_type_name(node)

return self.__write_node_handler.get_render_template(node, write_type)

def get_node_publish_template(self, node):
"""
Expand Down Expand Up @@ -221,21 +223,17 @@ def __add_write_node_commands(self, context=None):
Creates write node menu entries for all write node configurations
"""
context = context or self.context

write_type = "Version"
write_node_icon = os.path.join(self.disk_location, "resources", "tk2_write.png")

for profile_name in self.__write_node_handler.profile_names:
# add to toolbar menu
cb_fn = lambda pn=profile_name: self.__write_node_handler.create_new_node(pn)
cb_fn = lambda pn=profile_name, wt=write_type: self.__write_node_handler.create_new_node(pn,wt)
self.engine.register_command(
"%s [Shotgun]" % profile_name,
"%s" % profile_name,
cb_fn,
dict(
type="node",
icon=write_node_icon,
context=context,
)
)



)
200 changes: 162 additions & 38 deletions gizmos/WriteTank.gizmo
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ version 6.3
#
# Additional knob flags
# ---------------------
# These are set/removed by doing +/-FLAG_NAME, e.g. +STARTLINE to ensure the knob starts a
# new line in the property editor. A full list of flags can be found here:
# http://docs.thefoundry.co.uk/nuke/63/ndkdevguide/knobs-and-handles/knobflags.html
# These are set/removed by doing +/-FLAG_NAME, e.g. +STARTLINE to ensure the knob starts a
# new line in the property editor.A full list of flags can be found here:
# http://docs.thefoundry.co.uk/nuke/63/ndkdevguide/knobs-and-handles/knobflags.html
#
##########################################################################################
##########################################################################################
Expand All @@ -36,23 +36,40 @@ Gizmo {
l "Shotgun Write"
}
addUserKnob {
4 tk_profile_list
l "Profile"
M {}
t "Select the Profile to use for this node"
+DO_NOT_WRITE
1 precomp_render_template
l "Sgtk Precomp Template"
t "The Sgtk precomp template associated with this node"
+INVISIBLE
}
addUserKnob {
1 tank_channel
l "Output"
t "Choose an output name for this Write Node to help identify it when you have more than one output in your scene."
+STARTLINE
1 element_render_template
l "Sgtk Elements Template"
t "The Sgtk elements template associated with this node"
+INVISIBLE
}
addUserKnob {
6 tk_use_name_as_channel
l "Use node name"
t "Use the node name in place of the output name"
-STARTLINE
1 denoise_render_template
l "Sgtk Denoise Template"
t "The Sgtk denoise template associated with this node"
+INVISIBLE
}
addUserKnob {
1 cleanup_render_template
l "Sgtk Cleanup Template"
t "The Sgtk cleanup template associated with this node"
+INVISIBLE
}
addUserKnob {
1 final_render_template
l "Sgtk Final Template"
t "The Sgtk Final template associated with this node"
+INVISIBLE
}
addUserKnob {
1 test_render_template
l "Sgtk Test Template"
t "The Sgtk test template associated with this node"
+INVISIBLE
}
addUserKnob {
6 tk_is_fully_constructed
Expand All @@ -61,7 +78,7 @@ Gizmo {
+DO_NOT_WRITE
+STARTLINE
+INVISIBLE
}
}
addUserKnob {
1 profile_name
l "Profile Name"
Expand Down Expand Up @@ -103,32 +120,31 @@ Gizmo {
l "Sgtk Cached Proxy Path"
t "The path for this write node when rendering in proxy mode"
+INVISIBLE
}
}
addUserKnob {
1 tk_last_known_script
l "Last Known Script"
t "The last known script this Write node was saved in - used to determine if the script is being saved as a new file or not"
+INVISIBLE
}
}
addUserKnob {
1 tk_file_type
l "File Type"
t "The file type to be used for the write node output - this cached value is used if the profile can't be determined"
+INVISIBLE
}
}
addUserKnob {
1 tk_file_type_settings
l "File Type Settings"
t "A dictionary of file type settings to be applied to the Write node - this cached value is used if the profile can't be determined"
+INVISIBLE
}
}
addUserKnob {
1 tk_write_node_settings
l "Write Node Settings"
t "A string of tcl containing a record of settings for the internal write node at save time."
+INVISIBLE
}

}
addUserKnob {
26 ""
l ""
Expand Down Expand Up @@ -158,7 +174,6 @@ Gizmo {
T " "
t "A preview of the file location generated by the node."
}

addUserKnob {
26 path_warning
l " "
Expand All @@ -167,16 +182,16 @@ Gizmo {
+STARTLINE
}
addUserKnob {
22 reset_path
l "Reset Path"
T "import nuke\nif hasattr(nuke, \"_shotgun_write_node_handler\"):\n nuke._shotgun_write_node_handler.on_reset_render_path_gizmo_callback()"
26 files_warning
l " "
T " "
t ""
+STARTLINE
}

addUserKnob {
26 ""
l ""
T " "
22 reset_path
l "Reset Path"
T "import nuke\nif hasattr(nuke, \"_shotgun_write_node_handler\"):\n nuke._shotgun_write_node_handler.on_reset_render_path_gizmo_callback()"
+STARTLINE
}
addUserKnob {
Expand All @@ -188,17 +203,121 @@ Gizmo {
}
addUserKnob {
22 tk_copy_path
l "Copy Path to Clipboard"
T "import nuke\nif hasattr(nuke, \"_shotgun_write_node_handler\"):\n nuke._shotgun_write_node_handler.on_copy_path_to_clipboard_gizmo_callback()"
l "Copy Path"
T "import nuke\nif hasattr(nuke, \"_shotgun_write_node_handler\"):\n nuke._shotgun_write_node_handler.on_copy_path_to_clipboard_gizmo_callback(False)"
t "Copies the current render/proxy path to the clipboard"
-STARTLINE
}
addUserKnob {
22 tk_copy_path_win
l "Copy Path - Windows"
T "import nuke\nif hasattr(nuke, \"_shotgun_write_node_handler\"):\n nuke._shotgun_write_node_handler.on_copy_path_to_clipboard_gizmo_callback(True)"
t "Copies the current render/proxy path to the clipboard"
-STARTLINE
}

addUserKnob {
26 ""
l ""
+STARTLINE
}
addUserKnob {
4 write_type
l "SG Write Type"
t "Select the type of node you require this to be."
M {Version Precomp Element Denoise Cleanup Final Test}
}
addUserKnob {
22 write_type_info
l "Info"
T " "
}
addUserKnob {
1 write_type_cache
l "SG Write Type Cache"
t "The cached Write Type for this node"
+INVISIBLE
}
addUserKnob {
25 ""
- STARTLINE
}
addUserKnob {
4 tk_profile_list
l "Profile"
M {}
t "Select the Profile to use for this node"
-STARTLINE
+DO_NOT_WRITE
}
addUserKnob {
1 tank_channel
l "Detail"
t "Choose an output name for this Write Node to help identify it when you have more than one output in your scene."
+STARTLINE
-INVISIBLE
}
addUserKnob {
1 tank_channel_cache
l ""
t "Cache location for user entered text to change the output naming for write nodes"
+STARTLINE
+INVISIBLE
}
addUserKnob {
6 tk_use_name_as_channel
l "Use node name"
t "Use the node name in place of the output name"
-STARTLINE
+INVISIBLE
}
addUserKnob {
26 version_divider
l ""
+STARTLINE
-INVISIBLE
}
addUserKnob {
26 latest_version
l "<b style='color:gold'>Latest Version:<b>"
t "Shows current task context of the script"
T " "
}
addUserKnob {
26 version_date
l "<b style='color:gold'>Version Date:<b>"
t "Shows current task context of the script"
T " "
+STARTLINE
}
addUserKnob {
26 version_description
l "Description:"
t "Shows description of the latest version"
T " "
+STARTLINE
}
addUserKnob {
32 sync_from_sg
l "Sync Global frames from SG"
T " "
+STARTLINE
}
addUserKnob {
25 ""
- STARTLINE
}
addUserKnob {
32 refresh_version_info
l "Refresh Info"
T " "
-STARTLINE
}
addUserKnob {
26 ""
l ""
+STARTLINE
}

addUserKnob {
41 channels
T Write1.channels
Expand Down Expand Up @@ -233,7 +352,6 @@ Gizmo {
41 views
T Write1.views
}

addUserKnob {
26 ""
l ""
Expand All @@ -253,6 +371,7 @@ Gizmo {
}
addUserKnob {
41 Render
l "Local Render"
T Write1.Render
-STARTLINE
}
Expand All @@ -273,7 +392,6 @@ Gizmo {
T Write1.use_limit
-STARTLINE
}

addUserKnob {
41 reading
l "read file"
Expand All @@ -296,7 +414,6 @@ Gizmo {
T Write1.reload
-STARTLINE
}

addUserKnob {
26 ""
l ""
Expand Down Expand Up @@ -411,7 +528,7 @@ Gizmo {
addUserKnob {41 afterFrameRender l "after each frame" T Write1.afterFrameRender}
addUserKnob {1 tk_after_render l "after render"}
addUserKnob {41 renderProgress l "render progress" T Write1.renderProgress}

knobChanged "import nuke\nif hasattr(nuke, \"_shotgun_write_node_handler\"):\n nuke._shotgun_write_node_handler.on_knob_changed_gizmo_callback()"
onCreate "import nuke\nif hasattr(nuke, \"_shotgun_write_node_handler\"):\n nuke._shotgun_write_node_handler.on_node_created_gizmo_callback()"
}
Expand All @@ -421,6 +538,13 @@ Gizmo {
xpos 195
ypos -74
}
AddTimeCode {
startcode 01:00:00:01
metafps False
fps 23.98
useFrame True
frame 1
}
Write {
file "\[python __import__('nuke')._shotgun_write_node_handler.on_compute_path_gizmo_callback() if hasattr(__import__('nuke'), '_shotgun_write_node_handler') else nuke.thisParent().knob('cached_path').value()]"
proxy "\[python __import__('nuke')._shotgun_write_node_handler.on_compute_proxy_path_gizmo_callback() if hasattr(__import__('nuke'), '_shotgun_write_node_handler') else nuke.thisParent().knob('tk_cached_proxy_path').value()]"
Expand Down
27 changes: 27 additions & 0 deletions info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,33 @@ configuration:
fields: context, version, SEQ, [channel], [output], [name], [width], [height], [eye], [TankType], *
allows_empty: True
default_value: null
precomp_render_template:
type: template
fields: context, version, SEQ, [channel], [output], [name], [width], [height], [eye], *
allows_empty: True
default_value: null
element_render_template:
type: template
fields: context, version, SEQ, [channel], [output], [name], [width], [height], [eye], *
allows_empty: True
default_value: null
denoise_render_template:
type: template
fields: context, version, SEQ, [channel], [output], [name], [width], [height], [eye], *
allows_empty: True
cleanup_render_template:
type: template
fields: context, version, SEQ, [channel], [output], [name], [width], [height], [eye], *
allows_empty: True
final_render_template:
type: template
fields: context, version, SEQ, [channel], [output], [name], [width], [height], [eye], *
allows_empty: True
test_render_template:
type: template
fields: context, version, SEQ, [channel], [output], [name], [width], [height], [eye], *
allows_empty: True
default_value: null
tile_color:
type: list
values:
Expand Down
Loading