there is a ToolChanged scriptJob event. I would suggest creating the scriptjob on window creation. the scriptJob could then emit a qsignal that the tool can connect to to update your UI. and you can kill the scriptJob on ui closeEvent.
On Mon, Sep 15, 2014 at 10:02 AM, Marcus Ottosson <[email protected]> wrote: > That's a bit more tricky, unfortunately. :) > > One method of doing that might be to start a scriptJob and have that > monitor an attribute for changes. You could pass a reference to your window > into whatever function responds to that change, and use that to toggle your > checkbox. > > On 15 September 2014 18:03, <[email protected]> wrote: > >> ah yes. That works great. so simple! >> >> I guess my next logical question would be if there is a way to have those >> settings in the tool, update the checkbox in my toolwindow. >> >> So if my toolwindow has already been created, and a setting/option within >> the move tool is changed, it updates the checkbox in my tool window to >> reflect the new value? >> >> 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/6e238e9e-c3fc-4b0d-8944-ab68ede5e2a9%40googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Marcus Ottosson* > [email protected] > > -- > 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/CAFRtmOBnaa-J%3DuZrP3OeNb1BCXaQ873bsHnDPhBD6yw3yqXbiw%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBnaa-J%3DuZrP3OeNb1BCXaQ873bsHnDPhBD6yw3yqXbiw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAM9RXo%2BtsyRt9hkoJWqdqhn5aDMHs9jYM1eZgpPdFg7Gyi-pjQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
