Last active
March 28, 2018 19:34
-
-
Save liorbenhorin/abd44dbf694ec5ee48640e31839c6b69 to your computer and use it in GitHub Desktop.
Auto-start Pipeline with maya
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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