Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

renderGlobalsNode( string , [name=string], [parent=string], [renderQuality=string], [renderResolution=string], [shared=boolean], [skipSelect=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

renderGlobalsNode is undoable, NOT queryable, and NOT editable.

This command creates a new node in the dependency graph of the specified type.

The renderGlobalsNode creates a render globals node and registers it with the model. The createNode command will not register nodes of this type correctly.

Return value

stringThe name of the new node.
stringThe name of the render globals node

Related

connectAttr, setAttr

Flags

name, parent, renderQuality, renderResolution, shared, skipSelect
Long name (short name) Argument types Properties
name(n) string create
Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace doesn't exist, we will create the namespace.
parent(p) string create
Specifies the parent in the DAG under which the new node belongs.
renderQuality(rq) string create
Set the quality to be the renderQuality node with the given name.
renderResolution(rr) string create
Set the resolution to be the resolution node with the given name.
shared(s) boolean create
This node is shared across multiple files, so only create it if it does not already exist.
skipSelect(ss) boolean create
This node is not to be selected after creation, the original selection will be preserved.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.createNode( 'transform', n='transform1' )
cmds.createNode( 'nurbsSurface', n='surface1', p='transform1' )
cmds.createNode( 'camera', shared=True, n='top' )

# This transform will be selected when created
cmds.createNode( 'transform', n='selectedTransform' )

# This will create a new transform node, but 'selectedTransform'
# will still be selected.
cmds.createNode( 'transform', ss=True )

# Create node under new namespace
cmds.createNode( 'transform', n='newNS:transform1' )

cmds.renderGlobalsNode('bob')

# this one will use defaults for resolution and quality
cmds.renderGlobalsNode('bob', name='bob' )

cmds.renderGlobalsNode('bob', rq='myTestQuality1', name='abekasTestGlobals' )