self is the first arg only because the function is living inside a class (my add callback line doesn't reflect this)
i'll have a play with your suggestions. thanks for your help, mike. cheers, chrisg On 5 August 2011 04:33, notanymike <[email protected]> wrote: > I don't know if that first argument "self" is needed...Other than > that, what is "connectType?" > The argument right before clientData should be a boolean. If > connectType isn't that there could be > problems there. Or if you're trying to have connectType detect whether > a connection has been made or > broken, then there could be an issue with that part of the code, not > with the callback itself. It might > be easier to make two callbacks, one for made connections, the other > for broken ones. That could save > a lot of time and headaches trying to figure out how to tell when a > connection/disconnection happened > before it actually has outside of the callback... > Hope that helps, > Mike -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
