Go to: Synopsis. Return value. MEL examples.

Synopsis

int renderLayerUnparent( string $parent, string $child )

This procedure causes render layer node $child to be removed from render layer node $parent's list of contained render layers. See also renderLayerParent().

Return value

None

Arguments

Variable Name Variable Type Description
$parentstringThe render layer node we want to be the parent.
$childstringThe render layer node we want to be the child.

MEL examples

      // Create two render layer nodes.
      //
		string $parent = `createRenderLayer -name "parent" -empty`;
		string $child = `createRenderLayer -name "child" -empty`;

		// Make "parent" contain "child".
		//
		int $status = renderLayerParent( $parent, $child );

		// Now unparent.
		//
		int $status = renderLayerUnparent( $parent, $child );