pymel.core.general.vnnConnect

vnnConnect(*args, **kwargs)

Makes a connection between two VNN node ports. The first parameter is the full name of the DG node that contains the VNN graph. The next two parameters are the full path of the ports from the root of the VNN container. This command can be used for compound or node connections, and the parameters can be out-of-order.

Flags:

Long Name / Short Name Argument Types Properties
disconnect / d bool ../../../_images/create.gif
  delete the connection if it exists, rather than creating a new connection Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.vnnConnect

Example:

::

import pymel.core as pm

vnnConnect( disconnect=True, “bifrostfoam1|bifrostfoamContainer1”, “foam.foamObject” “foam.fatFoamEvaluationCompound.foamObject”)