Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya Mash - repromeshShape - confusing connections results with python

Maya Mash - repromeshShape - confusing connections results with python

moiamy
Collaborator Collaborator
404 Views
0 Replies
Message 1 of 1

Maya Mash - repromeshShape - confusing connections results with python

moiamy
Collaborator
Collaborator

Hello

 

I got one mash network composed with a single plane with a texture

 

Here are the six connections I have found with this code :

 

 name='MASH2_ReproMeshShape'
list_connectedNode_attribute = cmds.listConnections(name,p=True)
list_connections= cmds.listConnections(name,c=True)
print len(list_source)
for i in range(0,len(list_source)):
    print list_connectedNode_attribute[i]
    print list_connections[i]

 

MASH2_Repro.outMesh
MASH2_ReproMeshShape.inMesh

MASH2_Repro.meshMatrix
MASH2_Repro

MASH2_Repro.meshMessage
MASH2_ReproMeshShape.worldInverseMatrix

 

set7.dagSetMembers[2]
MASH2_Repro

groupId20.groupId
MASH2_ReproMeshShape.message

set7.memberWireframeColor
MASH2_Repro

 

2 questions :

1. Why 6 results although I got five in my node editor (see picture below)

2. Why MASH2_Repro is listed 3 times as a connection instead of MASH2_ReproMeshShape ?

 

repromesh 5 connections.jpg

0 Likes
405 Views
0 Replies
Replies (0)