pymel.core.general.containerPublish

containerPublish(*args, **kwargs)

This is an accessory command to the container command which is used for some advanced publishing operations on the container. For example, the publishConnectionsflag 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.

Flags:
  • bindNode : bn (unicode, unicode) [create,query,edit]

    Bind the specified node to the published node name.

  • bindTemplateStandins : bts (bool) [create,query,edit]

    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. Flag can have multiple arguments, passed either as a tuple or a list.

  • inConnections : ic (bool) [create]

    Specifies that the unpublished connections to nodes in the container from external nodes should be published.

  • mergeShared : ms (bool) [create]

    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 (bool) [create]

    Specifies that the unpublished connections from nodes in the container to external nodes should be published.

  • publishNode : pn (unicode, unicode) [create,query,edit]

    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 (unicode) [create,query,edit]

    Unbind the node that is published with the name specified by the flag.

  • unpublishNode : upn (unicode) [create,query,edit]

    Unpublish the specified published node name.

Derived from mel command maya.cmds.containerPublish

Previous topic

pymel.core.general.containerProxy

Next topic

pymel.core.general.containerTemplate

Core

Core Modules

Other Modules

This Page