pymel.core.general.relationship

relationship(*args, **kwargs)

This is primarily for use with file IO. Rather than write out the specific attributes/connections required to maintain a relationship, a description of the related nodes/plugs is written instead. The relationship must have an owner node, and have a specific type. During file read, maya will make the connections and/or set the data necessary to represent the realtionship in the dependency graph.

Flags:
Long name (short name) Argument Types Properties
b (b) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Break the specified relationship instead of creating it
relationshipData (rd) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Provide relationship data to be used when creating the relationship.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.relationship

Example:

import pymel.core as pm

pm.relationship('ignore', 'lightLinker1', 'pCube1', 'pointLight1')

Previous topic

pymel.core.general.refresh

Next topic

pymel.core.general.removeMultiInstance

Core

Core Modules

Other Modules

This Page