def bdMain(): UI_FILE_PATH = os.path.join(TOOLS_PATH, 'UI/bdSwitchPropsParentUI.ui') UI_OBJECT, BASE_CLASS = pyside_util.get_pyside_class(UI_FILE_PATH) if pm.window(WINDOW_NAME, exists=True, q=True): pm.deleteUI(WINDOW_NAME) SwitchParentUi()
def bdMain(): UI_FILE_PATH = os.path.join(TOOLS_PATH, 'UI/bdLipAnimUtils.ui') UI_OBJECT, BASE_CLASS = pyside_util.get_pyside_class(UI_FILE_PATH) if pm.window(WINDOW_NAME, exists=True, q=True): pm.deleteUI(WINDOW_NAME) LipAnimUI()
def bdMain(): UI_FILE_PATH = os.path.join( TOOLS_PATH, 'UI/bdLipAnimUtils.ui' ) UI_OBJECT, BASE_CLASS = pyside_util.get_pyside_class( UI_FILE_PATH ) if pm.window( WINDOW_NAME, exists = True, q = True ): pm.deleteUI( WINDOW_NAME ) LipAnimUI()
def bdMain(): UI_FILE_PATH = os.path.join( TOOLS_PATH, 'UI/bdSwitchPropsParentUI.ui' ) UI_OBJECT, BASE_CLASS = pyside_util.get_pyside_class( UI_FILE_PATH ) if pm.window( WINDOW_NAME, exists = True, q = True ): pm.deleteUI( WINDOW_NAME ) SwitchParentUi()
def show_ui(): UI_FILE_PATH = os.path.join( TOOLS_PATH, 'pyside_example.ui' ) UI_OBJECT, BASE_CLASS = pyside_util.get_pyside_class( UI_FILE_PATH ) if cmds.window( WINDOW_NAME, exists = True, q = True ): cmds.deleteUI( WINDOW_NAME ) Environment_Tool()
import sip, os, shiboken import PySide.QtGui as QtGui import PySide.QtCore as QtCore import pyside_util reload(pyside_util) # ##################### TOOLS_PATH = os.path.dirname(__file__) WINDOW_TITLE = 'Lip Anim Tools' WINDOW_VERTION = 1.0 WINDOW_NAME = 'bdLipAnimUtilWin' # ################### UI_FILE_PATH = os.path.join(TOOLS_PATH, 'UI/bdLipAnimUtils.ui') UI_OBJECT, BASE_CLASS = pyside_util.get_pyside_class(UI_FILE_PATH) pysideLoggers = ['pysideuic.properties', 'pysideuic.uiparser'] for log in pysideLoggers: logger = logging.getLogger(log) logger.setLevel(logging.ERROR) def widgetPath(windowName, widgetNames): """ @param windowName: Window instance name to search @param widgetNames: list of names to search for taken from http://www.chris-g.net/2011/06/24/maya-qt-interfaces-in-a-class/ """ returnDict = {}
import PySide.QtCore as QtCore import pyside_util reload(pyside_util) # ##################### TOOLS_PATH = os.path.dirname( __file__ ) WINDOW_TITLE = 'Lip Anim Tools' WINDOW_VERTION = 1.0 WINDOW_NAME = 'bdLipAnimUtilWin' # ################### UI_FILE_PATH = os.path.join( TOOLS_PATH, 'UI/bdLipAnimUtils.ui' ) UI_OBJECT, BASE_CLASS = pyside_util.get_pyside_class( UI_FILE_PATH ) pysideLoggers = ['pysideuic.properties','pysideuic.uiparser'] for log in pysideLoggers: logger = logging.getLogger(log) logger.setLevel(logging.ERROR) def widgetPath(windowName, widgetNames): """ @param windowName: Window instance name to search @param widgetNames: list of names to search for taken from http://www.chris-g.net/2011/06/24/maya-qt-interfaces-in-a-class/ """ returnDict = {}