Go to: Synopsis. Return value. MEL examples.

Synopsis

int renderLayerParent( string $parent, string $child )

This procedure causes render layer node $child to become contained within render layer node $parent via a layer hierarcy relationship. Containment is implemented by connecting the render layer hierarchy attributes on the two nodes as appropriate. There are certain conditions which are not permitted, such as a cyclic relationship, instancing within a layer hierarchy, attempting to connect to the default layer, etc. Any invalid conitions will trigger an error message and 0 will be returned. See also renderLayerUnparent().

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 );