| script (MEL) | Only available in MEL | 
		  | renderLayerParent  | In categories: Rendering, Layers | 
       
      
		
      
      Go to: Synopsis. Return value. MEL examples. 
      
       
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().
	  
      
      None
      
      
      
    Arguments
    
    
       | Variable Name | Variable Type | Description | 
    | $parent | string | The render layer node we want to be the parent. | 
| $child | string | The render layer node we want to be the child. | 
    
    
      // 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 );