1

How do I view my Nuke Quickdaily in Shotgun Screening Room

When I create a quick daily in Nuke I get an error saying: 

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

I see that the Version was created but there's no movie uploaded. How do I fix this?

댓글 1개

  • 0
    Avatar
    KP

    This 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) 2014 Shotgun Software Inc.
    # 
    # CONFIDENTIAL AND PROPRIETARY
    # 
    # 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))
            try:
                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/nuke_quickdailies_upload_movie.py.

    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:

     

    ...
    ...
          tk-nuke-quickdailies:
            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
    ...
    ...
    

     

댓글을 남기려면 로그인하세요.