Skip to content

Instantly share code, notes, and snippets.

@renaudll
Created January 29, 2016 02:21
Show Gist options
  • Select an option

  • Save renaudll/e9851bc47dcf1ba7ee15 to your computer and use it in GitHub Desktop.

Select an option

Save renaudll/e9851bc47dcf1ba7ee15 to your computer and use it in GitHub Desktop.
Initialize shotgun from Maya
import tank
from maya import cmds
path = cmds.file(q=True, sn=True)
tk = tank.tank_from_path(path)
ctx = tk.context_from_path(path)
tank.platform.start_engine('tk-maya', tk, ctx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment