Hi Michael, sorry for the late response on this.
While I understand your first point, but for the other point - `have your
GUI update when the values it is tracking in Maya change (eg when someone
undoes something in Maya)`, how do I go about doing it?
Is that something to be implemented in my GUI itself/ to create a new
filter or something?
I tried to do something as follows (for a selection case):
if event.type() == QtCore.QEvent.WindowActivate:
# get current scene selection
sel = cmds.ls(sl=True, l=True)[0]
# where myListWidgets contains all the locators
for index in range(self.ui.myListWidget.count()):
# `.data(32) is storing the full path of the locators
if sel == self.ui.myListWidget.item(index).data(32):
self.ui.myListWidget.setCurrentRow(index)
However, it will only selects the items in the list widget if I focus back
to my window...
--
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/f12ec7e9-131b-4b00-87e0-9f803c0ba1a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.