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
def pipeline_window(): | |
try: | |
pipeline_win = pipeline.apps.pipeline_main.pipeLineUI.instances | |
return pipeline_win[-1] | |
except: | |
raise('Error geting pipeline window instance') | |
p = pipeline_window() | |
print p.project.path |
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
import sys | |
path = 'path/to/where/pipeline/folder/is/located' #<-- change this to your path | |
sys.path.append(path) | |
import pipeline | |
pipeline.start() |
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
''' | |
Template class for docking a Qt widget to maya 2017+. | |
Author: Lior ben horin | |
12-1-2017 | |
''' | |
import weakref | |
import maya.cmds as cmds | |
import maya.OpenMayaUI as omui |
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
import pymel.core as pm | |
import mgear.maya.attribute as att | |
import mgear.maya.shifter as sh | |
print '==== updating guides to RB2.2 ===' | |
guide = sh.RigGuide() | |
guides_root = pm.PyNode('biped_guide') |
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
cd ~ | |
mkdir dev_tools | |
cd dev_tools | |
## download SIP source code | |
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.7/sip-4.16.7.tar.gz | |
tar zxf sip-4.16.7.tar.gz | |
cd sip-4.16.7 | |
python configure.py | |
make |
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(): |
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 is what you need to do in order to get a qt window to dock next to maya channel box, | |
In all maya versions, including 2017 with PySide2 | |
""" | |
__author__ = "[email protected]" | |
import sys | |
import os | |
import logging | |
import xml.etree.ElementTree as xml |
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
pth = '/Path/to/pipeline/directory' | |
if not pth in sys.path: | |
sys.path.append(pth) | |
from pipeline import pipeline | |
pipeline.show() |