Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.
containerPublish [-bindNode string string] [-bindTemplateStandins] [-inConnections] [-mergeShared] [-outConnections] [-publishNode string string] [-unbindNode string] [-unpublishNode string]
containerPublish is undoable, queryable, and editable.
This is an accessory command to the container command which is used
for some advanced publishing operations on the container. For example,
the "publishConnections" flag on the container will publish all the
connections, but this command can be used to publish just the inputs,
outputs, or to collapse the shared inputs into a single attribute
before publishing.
None
In query mode, return type is based on queried flag.
publish, container
container, containerProxy, containerTemplate
bindNode, bindTemplateStandins, inConnections, mergeShared, outConnections, publishNode, unbindNode, unpublishNode
Long name (short name) |
Argument types |
Properties |
-bindNode(-bn)
|
string string
|
|
|
Bind the specified node to the published node name.
|
|
-bindTemplateStandins(-bts)
|
|
|
|
This flag will create a temporary stand-in attribute for any
attributes that exist in the template but are not already bound.
This enables you to set values for unbound attributes.
|
|
-inConnections(-ic)
|
|
|
|
Specifies that the unpublished connections to nodes in the container
from external nodes should be published.
|
|
-mergeShared(-ms)
|
|
|
|
For use with the inConnections flag. Indicates that when an external
attribute connects to multiple internal attributes within the container, a
single published attribute should be used to correspond to all of the
internal attributes.
|
|
-outConnections(-oc)
|
|
|
|
Specifies that the unpublished connections from nodes in the container
to external nodes should be published.
|
|
-publishNode(-pn)
|
string string
|
|
|
Publish a name and type. When first published, nothing will be bound.
To bind a node to the published name, use the bindNode flag.
|
|
-unbindNode(-ubn)
|
string
|
|
|
Unbind the node that is published with the name specified by the flag.
|
|
-unpublishNode(-upn)
|
string
|
|
|
Unpublish the specified published node name.
|
|
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 be used more than once in a command.
|
// publish any unpublished inconnections and merge the shared inputs
//
containerPublish -inConnections -mergeShared container1;
// add a published name 'mainShader' of type 'objectSet'
//
containerPublish -publishNode "mainShadingSet" "objectSet" container1;
// bind a shading group to the published name
//
containerPublish -bindNode "mainShadingSet" blinn1SG container1;
// query what is bound
//
container -q -bindNode container1;
// unbind the shading group
//
containerPublish -unbindNode "mainShadingSet" container1;
// create and bind dynamic attributes for unbound template attributes
//
containerPublish -bindTemplateStandins container1;