Hi,  
    managed to solve it. My solution code is to grab the dependency node 
that the plug belongs to and use the MFnDependency functions to find the 
plug with the attribute name that I want. Since worldmatrix (At least in my 
situation) will always be the first element of the array, I just grab the 
first element and store the value as a MObject to access its information. 

            node = otherplug.node()
            dependency_object = api.MFnDependencyNode(node)
            world_matrix_plug = dependency_object.findPlug('worldMatrix')
            result = world_matrix_plug.elementByLogicalIndex(0)
            input_mobject = result.asMObject()


Thank you
Gann Boon Bay

-- 
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/1f8b3158-c334-454f-b0d3-3389c597fbca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to