Go to: Synopsis. Return value. MEL examples.

Synopsis

doPublishNode(int $version, string $args[])

Publish or unpublish the selected node to its container (asset). Publishing is done so that the node will appear in the UI and be selectable even when the asset is black boxed.

Return value

None

Arguments

Variable Name Variable Type Description
$version int : script version, indicates how to interpret the $args array
$args string[] : for $version == 1, $args[0] = whether or not to bind

MEL examples

  // publish the selected node
        doPublishNode(1,{1});