Skip to content

Commit

Permalink
wwfx submit to farm (#1)
Browse files Browse the repository at this point in the history
* Ignore tk-metadata

* Fixed ndk URL in gizmo

* Whitespace and newline trimmings

* Added wwfx submit to farm
  • Loading branch information
j0yu authored May 8, 2019
1 parent b28ab4d commit 0de57ac
Show file tree
Hide file tree
Showing 8 changed files with 478 additions and 461 deletions.
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[cod]

# C extensions
Expand Down
14 changes: 7 additions & 7 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Version: 7/07/2013

Shotgun Software Inc. ("Company") provides the Shotgun Pipeline Toolkit,
software, including source code, in this package or repository folder (the
"Shotgun Toolkit Code") subject to your acceptance of and compliance with
"Shotgun Toolkit Code") subject to your acceptance of and compliance with
the following terms and conditions (the "License Terms"). By accessing,
downloading, copying, using or modifying any of the Shotgun Toolkit Code,
downloading, copying, using or modifying any of the Shotgun Toolkit Code,
you agree to these License Terms.

Eligibility
Expand All @@ -33,7 +33,7 @@ to the Shotgun Toolkit Code or any of Company's other software or intellectual
property rights. You agree not to take any action with respect to the Shotgun
Toolkit Code that is not expressly authorized above.

You must keep intact (and, in the case of copies, reproduce) all copyright
You must keep intact (and, in the case of copies, reproduce) all copyright
and other proprietary notices, including all references to and copies of these
License Terms, as originally included on, in, or with the Shotgun Toolkit
Code. You must ensure that all derivative works you make of the Shotgun
Expand Down Expand Up @@ -64,7 +64,7 @@ Company).
Liability

You agree to be solely responsible for your use and modifications of the
Shotgun Toolkit Code, and for any harm or liability arising out of such use
Shotgun Toolkit Code, and for any harm or liability arising out of such use
or modifications, including but not limited to any liability for infringement
of third-party intellectual property rights.

Expand All @@ -78,7 +78,7 @@ advised of the possibility of such damages; and (b) in any event, Company's
aggregate liability under these License Terms or in connection with the
Shotgun Toolkit Code, regardless of the form of action and under any theory
(whether in contract, tort, statutory, or otherwise), will not exceed the
greater of $50 or the amount (if any) that you actually paid for access to
greater of $50 or the amount (if any) that you actually paid for access to
the Shotgun Toolkit Code.

Ownership
Expand Down Expand Up @@ -115,7 +115,7 @@ Company grants you a non-exclusive right to continue to modify, make
derivative works of, reproduce, and use the Contribution for your
non-commercial or internal business purposes, and to further Company's
development of Company Programs. This grant does not: (a) limit Company's
rights, (b) grant you any rights with respect to the Company Programs; nor
rights, (b) grant you any rights with respect to the Company Programs; nor
(c) permit you to distribute, operate for the benefit of third parties (for
example, on a hosted basis), or otherwise commercially exploit the
Contribution.
Expand Down Expand Up @@ -143,4 +143,4 @@ employees, and agents against any and all claims, actions or damages
account of a breach or alleged breach of the foregoing warranty. You make no
other express or implied warranty (including without limitation any warranty
of merchantability or fitness for a particular purpose) regarding the
Contribution.
Contribution.
62 changes: 31 additions & 31 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 2013 Shotgun Software Inc.
#
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.

"""
Expand Down Expand Up @@ -51,10 +51,10 @@ def destroy_app(self):
Called when the app is unloaded/destroyed
"""
self.log_debug("Destroying tk-nuke-writenode app")

# remove any callbacks that were registered by the handler:
self.__write_node_handler.remove_callbacks()

# clean up the nuke module:
if hasattr(nuke, "_shotgun_write_node_handler"):
del nuke._shotgun_write_node_handler
Expand All @@ -80,7 +80,7 @@ def post_context_change(self, old_context, new_context):
# these are triggered before the engine changes context, so we must manually call it here.
# this will force the path to reset and the profiles to be rebuilt.
self.__write_node_handler.setup_new_node(node)

def process_placeholder_nodes(self):
"""
Convert any placeholder nodes to TK Write Nodes
Expand All @@ -89,14 +89,14 @@ def process_placeholder_nodes(self):

# interface for other apps to query write node info:
#

# access general information:
def get_write_nodes(self):
"""
Return list of all write nodes
"""
return self.__write_node_handler.get_nodes()

def get_node_name(self, node):
"""
Return the name for the specified node
Expand All @@ -109,11 +109,11 @@ def get_node_profile_name(self, node):
is using
"""
return self.__write_node_handler.get_node_profile_name(node)

def get_node_tank_type(self, node):
"""
Return the tank type for the specified node
Note: Legacy version with old 'Tank Type' name - use
get_node_published_file_type instead!
"""
Expand All @@ -124,7 +124,7 @@ def get_node_published_file_type(self, node):
Return the published file type for the specified node
"""
return self.__write_node_handler.get_node_tank_type(node)

def is_node_render_path_locked(self, node):
"""
Determine if the render path for the specified node
Expand All @@ -134,71 +134,71 @@ def is_node_render_path_locked(self, node):
can happen if the file is moved on disk or if the template
is changed.
"""
return self.__write_node_handler.render_path_is_locked(node)
return self.__write_node_handler.render_path_is_locked(node)

# access full-res render information:
def get_node_render_path(self, node):
"""
Return the render path for the specified node
"""
return self.__write_node_handler.compute_render_path(node)
return self.__write_node_handler.compute_render_path(node)

def get_node_render_files(self, node):
"""
Return the list of rendered files for the node
"""
return self.__write_node_handler.get_files_on_disk(node)

def get_node_render_template(self, node):
"""
Return the render template for the specified node
"""
return self.__write_node_handler.get_render_template(node)

def get_node_publish_template(self, node):
"""
Return the publish template for the specified node
"""
return self.__write_node_handler.get_publish_template(node)

# access proxy-res render information:
def get_node_proxy_render_path(self, node):
"""
Return the render path for the specified node
"""
return self.__write_node_handler.compute_proxy_path(node)
return self.__write_node_handler.compute_proxy_path(node)

def get_node_proxy_render_files(self, node):
"""
Return the list of rendered files for the node
"""
return self.__write_node_handler.get_proxy_files_on_disk(node)

def get_node_proxy_render_template(self, node):
"""
Return the render template for the specified node
"""
return self.__write_node_handler.get_proxy_render_template(node)

def get_node_proxy_publish_template(self, node):
"""
Return the publish template for the specified node
"""
return self.__write_node_handler.get_proxy_publish_template(node)
return self.__write_node_handler.get_proxy_publish_template(node)

# useful utility functions:
def generate_node_thumbnail(self, node):
"""
Generate a thumnail for the specified node
"""
return self.__write_node_handler.generate_thumbnail(node)

def reset_node_render_path(self, node):
"""
Reset the render path of the specified node. This
will force the render path to be updated based on
the current script path and configuration.
Note, this should really never be needed now that the
path is reset automatically when the user changes something.
"""
Expand All @@ -207,7 +207,7 @@ def reset_node_render_path(self, node):
def convert_to_write_nodes(self, show_warning=False):
"""
Convert all Shotgun write nodes found in the current Script to regular
Nuke Write nodes. Additional toolkit information will be stored on
Nuke Write nodes. Additional toolkit information will be stored on
additional user knobs named 'tk_*'
:param show_warning: Optional bool that sets whether a warning box should be displayed to the user;
Expand Down Expand Up @@ -267,7 +267,7 @@ def convert_from_write_nodes(self, show_warning=False):

def create_new_write_node(self, profile_name):
"""
Creates a Shotgun write node using the provided profile_name.
Creates a Shotgun write node using the provided profile_name.
"""
self.__write_node_handler.create_new_node(profile_name)

Expand All @@ -287,7 +287,7 @@ def __add_write_node_commands(self, context=None):
cb_fn = lambda pn=profile_name: self.__write_node_handler.create_new_node(pn)
self.engine.register_command(
"%s [Shotgun]" % profile_name,
cb_fn,
cb_fn,
dict(
type="node",
icon=write_node_icon,
Expand Down
Loading

0 comments on commit 0de57ac

Please sign in to comment.