|
Hi,
I’ve got a UI made with Qt Creator with some radio buttons in it. These are grouped in a Group Box. I’m trying to get their values in script inside Maya after using the loadUI command. I can query everything about the buttons using the maya.cmds.radioButton command but that doesn’t let me query if the button is checked or not. The only way to do that is with the radioButtonGrp command. I’ve had no luck trying to use that with the Qt Group Box widget. What do I have to do to find what radio button is checked?
So far I’ve worked around it by creating some hidden check boxes, connecting them to the radio buttons in Qt Creator and querying those. But there must be an easier way.
Btw, I don’t have the full PyQt libraries installed and would rather use what comes with Maya out of the box.
UPDATE: Duh! It’s the “select” flag for the radioButton command. I kept looking for “checked” and missed it in the docs. All sorted now :)
Thanks in advance
-Radek
|
|
|