Query interface to the common tab of the render settings
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
camera (cam) | unicode | ||
|
|||
customTokenString (cts) | unicode | ||
Specify a custom key-value string to use to replace custom tokens in the file name. Use with firstImageName or lastImageName. Basic tokens (Scene, Layer, RenderLayer, Camera, Version, Extension) will be automatically expanded. Any other tokens must be specified here to be expanded. The format of the string is a space separated list of tokens-value pairs. For example, if the file name string is “myFile_myToken_myOtherToken_v” then the argument to this flag string should take the form “myToken=myTokenValue myOtherToken=myOtherTokenValue”. |
|||
firstImageName (fin) | bool | ||
|
|||
fullPath (fp) | bool | ||
|
|||
fullPathTemp (fpt) | bool | ||
|
|||
genericFrameImageName (gin) | unicode | ||
|
|||
imageGenericName (ign) | bool | ||
|
|||
lastImageName (lin) | bool | ||
|
|||
layer (lyr) | unicode | ||
|
|||
leaveUnmatchedTokens (lut) | bool | ||
Do not remove unmatched tokens from the name string. Use with firstImageName or lastImageName.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.renderSettings
Example:
import pymel.core as pm
import maya.cmds as cmds
# Get the name of the first and last image for the current layer
fl = pm.renderSettings(firstImageName=True, lastImageName=True)
print( 'First image is '+fl[0] )
# This is the empty string if the scene is not set for animation
if fl[1] == '':
print('Not rendering animation');
else:
print( 'Last image is '+fl[1] )