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

Synopsis

affectedNet( [node...] , [type=string])

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

affectedNet is undoable, queryable, and editable.

This command gets the list of attributes on a node or node type and creates nodes of type TdnAffect, one for each attribute, that are connected iff the source node's attribute affects the destination node's attribute.

Return value

None

In query mode, return type is based on queried flag.

Related

affects, listConnections

Flags

type
Long name (short name) Argument types Properties
type(t) string create
Get information from the given node type instead of one node

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

# Create a network of this transform node's attributes that affect
# each other
cmds.affectedNet( 'transform1' )
# Create a network all of the transform shared attributes that affect
# each other
cmds.affectedNet( t='transform' )
# Create a network of the revolve and shape node type attributes that
# affect each other
cmds.affectedNet( t='revolve', t='shape' )