Re: [Maya-Python] How to run a certain function at every n seconds until tool is close

2019-07-29 Thread Justin Israel
On Tue, Jul 30, 2019 at 9:33 AM Ravi Jagannadhan wrote: > What about MTimerMessage? That could help run something at regular > intervals. > That does sound like a better option > > On Mon, Jul 29, 2019 at 2:26 PM Justin Israel > wrote: > >> >> >> On Tue, Jul 30, 2019 at 9:01 AM kiteh wrote:

Re: [Maya-Python] How to run a certain function at every n seconds until tool is close

2019-07-29 Thread Ravi Jagannadhan
What about MTimerMessage? That could help run something at regular intervals. On Mon, Jul 29, 2019 at 2:26 PM Justin Israel wrote: > > > On Tue, Jul 30, 2019 at 9:01 AM kiteh wrote: > >> Does Maya have some sort of callbacks or script jobs that will allows me >> to run a function every 30

Re: [Maya-Python] How to run a certain function at every n seconds until tool is close

2019-07-29 Thread kiteh
Hi Justin, I was looking at the use of `threading` while waiting for replies. I tried the following: import threading from maya import cmds t = None def run_check(): global t t = threading.Timer(5.0, run_check) t.start() get_panels() def get_panels(): for pane in

[Maya-Python] How to run a certain function at every n seconds until tool is close

2019-07-29 Thread kiteh
Does Maya have some sort of callbacks or script jobs that will allows me to run a function every 30 seconds (eg. for updating the contents in the tool) and this callback.scriptjob will be removed upon tool closure? -- You received this message because you are subscribed to the Google Groups

Re: [Maya-Python] Hide Shapes from Channel Box

2019-07-29 Thread liudgervr
Op dinsdag 24 februari 2015 12:10:46 UTC+1 schreef Marcus Ottosson: > The channel box respects the isHistoricallyInteresting attribute. > # Hide from outliner > cmds.setAttr("myNode.isHistoricallyInteresting", 0) > > > I can’t remember exactly what the various enums represent, but it’s something