On Tue, Jul 30, 2019 at 9:33 AM Ravi Jagannadhan <enr...@gmail.com> 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 <justinisr...@gmail.com>
> wrote:
>
>>
>>
>> On Tue, Jul 30, 2019 at 9:01 AM kiteh <kiteh.0...@gmail.com> wrote:
>>
>>> 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?
>>>
>>
>> I don't believe Maya directly provides the equivalent of a cron task. But
>> you can easily do that yourself with Python threading
>> <https://docs.python.org/2/library/threading.html> or Qts QTimer
>> <https://doc.qt.io/archives/qt-4.8/qtimer.html>, and you can use a
>> scriptJob to know when to stop it, if it provides relevant event conditions
>> that meet your needs.
>>
>> --
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/181c8fd3-8a6f-4407-ad56-64deefdfd97a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/181c8fd3-8a6f-4407-ad56-64deefdfd97a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3J1FiM6o6DLq2Y1fQF7io6T56SUJGH%2Bvdq2z6doALHGg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3J1FiM6o6DLq2Y1fQF7io6T56SUJGH%2Bvdq2z6doALHGg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Where we have strong emotions, we're liable to fool ourselves - Carl Sagan
>
> --
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CADHeb2b2i9vsuXeEGJksjVeQUYFuozEjq%2BTuw3RTH01Q7J3-jQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CADHeb2b2i9vsuXeEGJksjVeQUYFuozEjq%2BTuw3RTH01Q7J3-jQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3rtt_icnMkcEj1u%2BDcv4DTmio-nhY-YpCYbGyaCjH7Nw%40mail.gmail.com.

Reply via email to