How do I view my Nuke Quickdaily in Shotgun Screening Room

Note: This document describes functionality only available if you have taken control over a Toolkit configuration. Please refer to the Shotgun Integrations User Guide if you do not have a more advanced configuration.

When you create a Quick Daily in Nuke and try and view the Version media in Screening Room, you may get an error saying: 

Sorry, this version doesn't have any browser-playable media.

and there's no movie uploaded.

The Nuke Quickdailies app doesn't upload the movie to Shotgun by default so your daily won't be viewable in the browser using Screening Room. We plan to update quickdailies to use tk-multi-reviewsubmission which is a more standardized "api-type" app. However, for now, you can add this functionality yourself using a very simple hook:

Create a new hook file that looks like this:

# Copyright (c) 2015 Shotgun Software Inc.
# 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 
# not expressly granted therein are reserved by Shotgun Software Inc.

import sgtk
from sgtk import Hook

class NukeQuickdailiesUploadMovie(Hook):
    Hook that is used to upload quicktime to Shotgun for use in Screening Room.

    def execute(self, mov_path, version_id, comments, **kwargs):
        Main hook entry point

        :param mov_path:    str path to movie on disk
        :version_id:        int id of the Version entity in Shotgun
        :comments:          str comments provided in the quickdaily node when submitted

        :returns:            None
        app = self.parent
        app.log_debug("Uploading movie %s to Shotgun Version %s..." % (mov_path, version_id))
            result = app.shotgun.upload('Version', version_id, mov_path, 'sg_uploaded_movie')
        except Exception, e:
            app.log_warning("Unable to upload movie to Shotgun: %s" % e)


and save it in your project config's hooks folder as /path/to/sgtk/software/shotgun/<project_name>/config/hooks/

Then in your environment config (eg. /path/to/sgtk/software/shotgun/<project_name>/config/env/shot_step.yml), add this to the post_hooks setting:

Note: the version of your tk-nuke-quickdailies app may be different. Use your version, not the one here. 

        current_scene_template: nuke_shot_work
        height: 768
        location: {name: tk-nuke-quickdailies, type: app_store, version: v0.1.8}
        movie_template: shot_quicktime_quick
        post_hooks: [snapshot_history_post_quickdaily, nuke_quickdailies_upload_movie]
        sg_version_name_template: nuke_quick_shot_version_name
        width: 1024




Please sign in to leave a comment.