[Python] Connect a node to another node?

[Python] Connect a node to another node?

Jiloc
Participant Participant
689 Views
1 Reply
Message 1 of 2

[Python] Connect a node to another node?

Jiloc
Participant
Participant

Hello everyone. Here is my problem (this is a simpler case):
[LIST=1]
[*]I project a curve on a mesh using polyProjectCurve which creates and attaches a polyProjectCurve node to the mesh node;
[*]I apply a boolean operation to the mesh with creates a new polySurface node;
[*]Now I'd like to apply splitMeshWithProjectedCurve between the new polygon returned by the boolean operation and the projected curve create at the step 1;
[/LIST]

In order to do that I need to connect the polyProjectCurve node from step 1 to the polySurfaced created in step 2. Is it at least possible? Does anyone know how? (I am using maya.cmds and maya.OpenMaya)

0 Likes
690 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

does following command work for you? 

cmds.connectAttr( 'yourPolySplit01.output', 'yourPolyShape01.inMesh' )

 

0 Likes