Skip to content

Instantly share code, notes, and snippets.

@liorbenhorin
Last active March 28, 2018 19:34
Show Gist options
  • Save liorbenhorin/abd44dbf694ec5ee48640e31839c6b69 to your computer and use it in GitHub Desktop.
Save liorbenhorin/abd44dbf694ec5ee48640e31839c6b69 to your computer and use it in GitHub Desktop.
Auto-start Pipeline with maya
"""
This file, if placed inside maya scripts directory,
will launch Pipeline during Maya startup.
We use utils.executeDeferred so we won't interrupt the maya loading sequence.
"""
import sys
import maya.utils as utils
def startPipeline():
# if you need to start maya from a place that is not the maya script folder,
# uncomment the following two lines
#path = 'path/to/where/pipeline/folder/is/located' #<-- change this to your path
#sys.path.append(path)
import pipeline
pipeline.start()
utils.executeDeferred('startPipeline()')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment