Created a .ui file in QtDesigner, it shows up happily in Maya via loadUI.
I have other Maya code (based on lsUI) that can search through controls
related to buttons, and report stuff like their label, annotation, command,
etc.
However, it *appears *that lsUI ignores anything created from a .ui file.
I know the corresponding Maya controls do exist. For example, I have a
named QPushButton in qtDesigner called 'myButton'. This works in Maya:
import pymel.core as pm
b = pm.ui.Button('myButton')
print b
print b.getLabel()
But again, lsUI ignores the existence of the corresponding Maya button.
Any thoughts on how to say, just list every QPushButton in Maya? I can
sort from there. Or any other ideas?
thanks
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/09b577ae-2418-4438-a281-e09ed411eb3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.