如何在 Shotgun 审片室中查看我的 Nuke Quickdaily

注意:本文档介绍仅当您能够控制 Toolkit 配置时才可用的功能。如果没有更高级的配置,请参见 Shotgun 集成用户手册

在 Nuke 中创建 Quick Daily 并尝试在审片室中查看版本媒体时,您可能会收到以下错误: 

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

并且未上传任何影片。

默认情况下,Nuke Quickdailies 应用不会将影片上传到 Shotgun,因此,无法使用审片室在浏览器中查看您的样片。我们计划更新 Quickdailies 以使用tk-multi-reviewsubmission,这是一个更标准化的“api 类型”应用。但现在您可以使用一个非常简单的挂钩来自行添加此功能:

创建如下所示的新挂钩文件:

# Copyright (c) 2015 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)

 

将其保存到您项目配置的 hooks 文件夹中,命名为 /path/to/sgtk/software/shotgun/<project_name>/config/hooks/nuke_quickdailies_upload_movie.py

然后,在您的环境配置中(例如,/path/to/sgtk/software/shotgun/<project_name>/config/env/shot_step.yml),将其添加到 post_hooks 设置:

注意:您的 tk-nuke-quickdailies 应用的版本可能会有所不同。请使用您自己的版本,而不是此处的版本。 

...
...
      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
...
...

 

关注

0 评论

登录写评论。