So I’m seeing more and more Tech Artists making the jump to Maya 2014 PySide. So I’ve
quickly made an example UI which you can load the .ui file or the converted to PySide file.
========================================================================
INSTRUCTIONS::
========================================================================
Unzip files into your script directory.
(Keep pyside_example.py, pyside_util.py, pyside_example_ui.py, and pyside_example.ui together )
Open Maya 2014
# To run .ui file
import pyside_example
pyside_example.show_ui()
# To run compiled .ui file
import pyside_example
pyside_example.show_compiled()
Hope this helps answer some PySide questions that are out there.
-Nick
So I have everything working just fine but in my console window pyside likes to print out all of this extra stuff like “// pysideuic.properties : setting property text //” Is there any way to suppress this?
[QUOTE=Jredd;22813]So I have everything working just fine but in my console window pyside likes to print out all of this extra stuff like “// pysideuic.properties : setting property text //” Is there any way to suppress this?[/QUOTE]
So i’m gonna answer my own question since I figure some people would like to know. Simply use this when you want to suppress pysides annoying print out.
import logging
pyqtLoggers = ['pysideuic.properties','pysideuic.uiparser']
for log in pyqtLoggers:
logger = logging.getLogger(log)
logger.setLevel(logging.ERROR)