Thank Alberto, this closeEvent from PyQt, right? There are also a fews
event from SceneMessage i think i can take advantage as well


On Wed, May 15, 2019 at 4:05 PM Alberto Sierra Lozano <
alberto.sierraloz...@gmail.com> wrote:

> Just a recommendation. What i usually do, is to remove the callback in the
> closeEvent.
>
> Something like:
>
> def closeEvent(self, event):
>     om.MMesage.removeCallback
> <https://download.autodesk.com/us/maya/2010help/API/class_m_message.html#1d356698d5e84abd1806bc919a0c7b0f>
> (self._my_callback_id)
>     super(MyClassName, self).closeEvent(event)
>
> Hope it helps!
>
> El miércoles, 15 de mayo de 2019, 10:52:27 (UTC+2), Lucid Production
> escribió:
>>
>> I think  MDagMessage
>> <http://help.autodesk.com/cloudhelp/2017/ENU/Maya-SDK/cpp_ref/class_m_dag_message.html#a33a28fd9c6b6fbaa4fefe2c849f76636>.addWorldMatrixModifiedCallback
>> is the one i'm looking for. Then i can connect it to PySide's instance and
>> call functions of GUI.
>>
>>
>> On Wed, May 15, 2019 at 3:24 PM Lucid Production <em....@gmail.com>
>> wrote:
>>
>>> Hi Alberto, the link you sent me earlier is about MeshComponent, signal
>>> when a mesh's component being modified, but as long as there such a
>>> MessageClass like that in mayaAPI, then i know i can dive more into it :)
>>>
>>> And yes, i think an attribute's changed is more correct way to talk
>>> about it. I want to get notify whenever worldMatrix's attribute of an
>>> object(the transform node of a mesh for example) is being changed(By
>>> translate, rotate or move). I catch that signal, then handle it in my gui.
>>>
>>> On Wed, May 15, 2019 at 2:38 PM Alberto Sierra <alberto.s...@gmail.com>
>>> wrote:
>>>
>>>> Yep, that’s true. I thought that it was talking about Meshes, and not
>>>> transform. Sorry about that. Btw, what do you mean with “a transform being
>>>> modified”? An attribute changed?
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On 15 May 2019, at 01:59, Michael Boon <boon...@gmail.com> wrote:
>>>>
>>>> I don't think MPolyMessage will help here. I haven't done this myself
>>>> but I think the type of message you need is
>>>> OpenMaya.MNodeMessage.addAttributeChangedCallback (
>>>> )
>>>>
>>>> I'd be interested to know how you end up solving it.
>>>>
>>>>
>>>> On Wednesday, 15 May 2019 04:59:26 UTC+10, Alberto Sierra Lozano wrote:
>>>>>
>>>>>
>>>>> I think that The link that I sent you in the previous post is the one
>>>>> that you should use. Isn’t it?
>>>>>
>>>>> Let me know if you need some more help!
>>>>>
>>>>> Thanks
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>> On 14 May 2019, at 20:29, Lucid Production <em....@gmail.com> wrote:
>>>>>
>>>>> I just take a look at MMessage class and there a lot of stuffs inside.
>>>>> But it's a great point to start.
>>>>> Thank a lot, Robert :)
>>>>>
>>>>> On Wed, May 15, 2019 at 1:12 AM Robert White <robert...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> scritpJob is built on top of the MMessage event system that is
>>>>>> exposed through the API. So it is capable of doing everything that a
>>>>>> scriptJob is, plus has access to some more granular events.
>>>>>> Nothing is stored in userPrefs though, you have to setup the events
>>>>>> for each session.
>>>>>>
>>>>>>
>>>>>> On Tuesday, May 14, 2019 at 12:28:35 PM UTC-5, Lucid Production wrote:
>>>>>>>
>>>>>>> Hi Alberto
>>>>>>> I don't have much experience with MayaAPI but is Maya's EventSystem
>>>>>>> equal to Mel's ScriptJob? ScriptJob store in preference of user's 
>>>>>>> machine,
>>>>>>> so i don't really like it much
>>>>>>>
>>>>>>> On Wed, May 15, 2019 at 12:02 AM Alberto Sierra Lozano <
>>>>>>> alberto.s...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hello!
>>>>>>>>
>>>>>>>> Have you checked the Event system from the Maya API?
>>>>>>>>
>>>>>>>>
>>>>>>>> https://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=__py_ref_class_open_maya_1_1_m_poly_message_html
>>>>>>>>
>>>>>>>> Hope it helps!
>>>>>>>>
>>>>>>>> El martes, 14 de mayo de 2019, 18:42:50 (UTC+2), em....@gmail.com
>>>>>>>> escribió:
>>>>>>>>>
>>>>>>>>> Hi everybody, it would be awesome if Maya could tell us if a
>>>>>>>>> transform's node being modified or not. I want to connect that's 
>>>>>>>>> signal to
>>>>>>>>> PyQT gui and handle the data.
>>>>>>>>>
>>>>>>>>> Is that possible? Thanks
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to a topic in
>>>>>>>> the Google Groups "Python Programming for Autodesk Maya" group.
>>>>>>>> To unsubscribe from this topic, visit
>>>>>>>> https://groups.google.com/d/topic/python_inside_maya/n0fjcjQAyWk/unsubscribe
>>>>>>>> .
>>>>>>>> To unsubscribe from this group and all its topics, 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/da5367e0-6553-475f-9b6f-51e8d6a8384a%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/da5367e0-6553-475f-9b6f-51e8d6a8384a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Tuan Nguyen (Mr) - Team Coordinator
>>>>>>>
>>>>>>> EM.Lucid - Animation Studio
>>>>>>> Website  : https://emlucid.wixsite.com/lucidproduction
>>>>>>> Tel         : +84 974858574
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to a topic in
>>>>>> the Google Groups "Python Programming for Autodesk Maya" group.
>>>>>> To unsubscribe from this topic, visit
>>>>>> https://groups.google.com/d/topic/python_inside_maya/n0fjcjQAyWk/unsubscribe
>>>>>> .
>>>>>> To unsubscribe from this group and all its topics, 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/b4d9622a-fa69-4888-991a-798cd97902a1%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/b4d9622a-fa69-4888-991a-798cd97902a1%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Tuan Nguyen (Mr) - Team Coordinator
>>>>>
>>>>> EM.Lucid - Animation Studio
>>>>> Website  : https://emlucid.wixsite.com/lucidproduction
>>>>> Tel         : +84 974858574
>>>>>
>>>>> --
>>>>> 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/CAHDMw%2BtpG77PM9PUkH%2BRS8ZnzAZOfEUBewN615qX4VQVvuxpZw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAHDMw%2BtpG77PM9PUkH%2BRS8ZnzAZOfEUBewN615qX4VQVvuxpZw%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 python_inside_maya+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/78ab89ca-79d4-46ac-97e8-a243a25de296%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/78ab89ca-79d4-46ac-97e8-a243a25de296%40googlegroups.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 a topic in the
>>>> Google Groups "Python Programming for Autodesk Maya" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/python_inside_maya/n0fjcjQAyWk/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, 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/723FABAD-1D31-4E26-B032-571EC81B0204%40gmail.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/723FABAD-1D31-4E26-B032-571EC81B0204%40gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>> --
>>>
>>> Tuan Nguyen (Mr) - Team Coordinator
>>>
>>> EM.Lucid - Animation Studio
>>> Website  : https://emlucid.wixsite.com/lucidproduction
>>> Tel         : +84 974858574
>>>
>>
>>
>> --
>>
>> Tuan Nguyen (Mr) - Team Coordinator
>>
>> EM.Lucid - Animation Studio
>> Website  : https://emlucid.wixsite.com/lucidproduction
>> Tel         : +84 974858574
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/n0fjcjQAyWk/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/8eca4717-a7e9-4fc6-ad94-a424eb0a13e2%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/8eca4717-a7e9-4fc6-ad94-a424eb0a13e2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Tuan Nguyen (Mr) - Team Coordinator

EM.Lucid - Animation Studio
Website  : https://emlucid.wixsite.com/lucidproduction
Tel         : +84 974858574

-- 
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/CAHDMw%2Bt52M2AvZ-Zrw_xx4JcSNpCmoSfvaWgsYK5wPT4-ZkbCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to