engine


# -*- coding: utf-8 -*-
import os
import sgtk
import tank
from tank_vendor import yaml

PROJECT_PATH = 'S:\Shared with groups\mtz'
REPO_NAME = 'MTZ'
TANK_PATH = 'S:/Shared with all/tools/tank/mtz'

env_context = os.environ.get('SGTK_CONTEXT')
context = sgtk.context.deserialize(env_context)
tk = sgtk.sgtk_from_path(TANK_PATH)
engine = sgtk.platform.start_engine('tk-maya', tk, context)
sg =  engine.shotgun

评论
  目录