On 15 Cze, 22:18, Chris G <[email protected]> wrote:
> Hm, not having PyQt, all I can suggest is trying the maya.cmds.scriptJob
> equivalent to make sure it's not the wrapper doing something weird.
>
> -Chris

Problem solved :)

When I changed:

    def doSomething(self):
        pm.scriptJob(e=["SelectionChanged",self.emit(SIGNAL
("didSomething"))])

to:

    def emitSignal(self):
        self.emit(SIGNAL("didSomething"))

    def doSomething(self):
        pm.scriptJob(e=["SelectionChanged", self.emitSignal])

everything runs fine. I was passing method name without brackets
everything runs without errors.






--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to