Well the situation is that, I have an adapt rig..

Could you elaborate a little on what an “adapt rig” is? What is the
relation between the adapt rig and the skinned character? Do you mean a
guide rig of sorts?

It might be easier if you can distil your issue into a minimal scene with a
cube and some joints.
​


On 3 September 2014 15:53, Dilen Shah <[email protected]> wrote:

> Hey,
>
> Well the situation is that, I have an adapt rig and skinning in the file,
> at the moment wen i change the adpt rig the skinning rig moves with it and
> thus they are the moment having direct connection but I want to change it
> to MMessage thus when I move the adapt rig the node i am writing will
> calculate the world matrix and position rotation information and apply to
> skinning rig without any connections.
>
> If you done understand lemme know i can elaborate.
>
> Dilen.
>
> On Wednesday, September 3, 2014 12:15:15 PM UTC+2, Marcus Ottosson wrote:
>
>> If you can narrow down an example of what you're trying to accomplish, I
>> might be able to provide an example for you.
>>
>>
>> On 3 September 2014 12:02, Marcus Ottosson <[email protected]> wrote:
>>
>>> That's precisely where you would use nodes instead of scripting. :)
>>>
>>> The node will update in real-time, like any other node. I'm using it in
>>> most of my rigs for just that purpose.
>>>
>>>
>>> On 3 September 2014 11:56, Dilen Shah <[email protected]> wrote:
>>>
>>>> well thats one way of doing it, but I am using python API and I want
>>>> functionality like if i move node 1 node 2 should move in realtime with it.
>>>>
>>>> Any ideas for that?
>>>>
>>>> thanks
>>>>
>>>> D.
>>>>
>>>>
>>>> On Wednesday, September 3, 2014 10:22:37 AM UTC+2, Marcus Ottosson
>>>> wrote:
>>>>
>>>>> Hi Dilen,
>>>>>
>>>>> There is the “multMatrix” node which may help, it should be able to do
>>>>> what you’re looking for and output a new matrix for you. I’m using it in
>>>>> much the same way, its also helpful when cancelling one matrix with 
>>>>> another.
>>>>>
>>>>> cmds.createNode('multMatrix')
>>>>>
>>>>> ​
>>>>>
>>>>>
>>>>> On 3 September 2014 09:59, Dilen Shah <[email protected]> wrote:
>>>>>
>>>>>> Hey guys,
>>>>>>
>>>>>> I have 2 nodes in my scene.
>>>>>>
>>>>>> I am using MMessage and creating a callback function, this function
>>>>>> needs to take the worldmatrix of both nodes and apply one matrix to 
>>>>>> another
>>>>>> so that the second node is the same exact position as the first node.
>>>>>>
>>>>>> Can anyone explain how i can achieve it as they have groups as their
>>>>>> parents so multiply the parentworldmatrix and their worldmatrix would be
>>>>>> necessary can anyone help me with the math, or any link to resources 
>>>>>> would
>>>>>> be appreciated.
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>> Dilen.
>>>>>>
>>>>>> --
>>>>>> 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/db8272fd-d1a2-4656-be91-f073a32ca35e%
>>>>>> 40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/db8272fd-d1a2-4656-be91-f073a32ca35e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> 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/ee6bebf4-80ae-46b5-9299-
>>>> 440d1cf83c1c%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/ee6bebf4-80ae-46b5-9299-440d1cf83c1c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> *Marcus Ottosson*
>>> [email protected]
>>>
>>
>>
>>
>> --
>> *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/1088e1cf-a781-4729-b060-f197b56f78fd%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/1088e1cf-a781-4729-b060-f197b56f78fd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAFRtmOArt-PP-zW99aFAtFjn9m_zBTePe294wcui%3DJ1_VxzEsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to