Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

vnnConnect( [dg container] [full path to first port] [full path to second port] , [copyMetaData=boolean], [disconnect=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

vnnConnect is undoable, NOT queryable, and NOT editable.

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.

Return value

None

Keywords

Bifrost

Flags

copyMetaData, disconnect
Long name (short name) Argument types Properties
copyMetaData(cm) boolean create
If the connection is a child node input connecting to the parent compound input node, copy relevant port metadata from the child node input to the parent compound external input. Port metadata to copy is specified 1) in the runtime, and 2) by setting the "metaDataToCopy" port metadata value on the child node input to a comma-separated string listing the desired metadata names.
disconnect(d) boolean create
Deletes the connection if it exists, rather than creating a new connection.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

import maya.mel as mel
cmds.file(new=1, f=1)
mel.eval("createNewBifrostGraphCmd()")

cmds.vnnCompound("bifrostGraphShape1","/", addNode="BifrostGraph,Core::Math,add")
cmds.vnnCompound("bifrostGraphShape1","/", addNode="BifrostGraph,Core::Math,subtract")

cmds.vnnNode("bifrostGraphShape1", "/subtract", createInputPort=("input", "auto"))
cmds.vnnConnect("bifrostGraphShape1", "/add.output", "/subtract.input")