pymel.core.rendering.renderPartition

renderPartition(*args, **kwargs)

Set or query the model’s current partition. When flag qis not used, a partion name must be passed as an argument. In this case the current partition is set to that name.

Derived from mel command maya.cmds.renderPartition

Example:

import pymel.core as pm

# Query the current render partition
pm.renderPartition( q=True )
# Result: u'renderPartition' #

# Set the current render partition to "foofoo"
pm.renderPartition( 'foofoo' )