Go to: Synopsis. Return value. Keywords.
Related. Flags.
Python examples.
containerBind([allNames=boolean], [bindingSet=string], [bindingSetConditions=boolean],
[bindingSetList=boolean],
[force=boolean], [preview=boolean])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
containerBind is undoable, queryable, and editable.
This is an accessory command to the container command which is used
for some automated binding operations on the container. A
container's published interface can be bound using a bindingSet on
the associated container template.
In query mode, return type is based on queried flag.
bind, container
container, containerProxy, containerPublish, containerTemplate
allNames, bindingSet, bindingSetConditions, bindingSetList, force, preview
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. |
import maya.cmds as cmds
# query the template binding sets available for this container
#
cmds.containerBind(container1, query=1, bindingSetList=1)
# attempt to bind published names on the container
# using matching information in the bindingSet specified.
# By default only unbound names are considered.
#
cmds.containerBind(container1, bindingSet="MayaBindings")
# Attempt to bind all published names on the container
# using matching information in the bindingSet specified.
# Previously bound names will only be re-bound if the bindingSet
# produces an appropriate match.
#
cmds.containerBind(container1, bindingSet="MayaBindings", allNames=1)
# Forcibly re-bind all published names on the container
# using matching information in the bindingSet specified.
# All previously bound names will be unbound and will only
# be re-bound if the binding set produces an appropriate match.
#
cmds.containerBind(container1, bindingSet="MayaBindings", allNames=1, force=1)
# preview what the results of a binding operation would be, but do
# not actually perform it.
cmds.containerBind(container1, bindingSet="MayaBindings", preview=1, allNames=1, force=1)