|
hello,
I was trying the snippet from documentation about the hwrender. But it doesn’t work and crash. Especially the part I really need.
I’d like to start the hwrender, and get the path of the file where it did save it, so I can open it in an external viewer.
But right now the ImageFilename and query stuff like the example below just throw an error :(
Could you help me with that please ?
cheers,
F
import maya.cmds as cmds
# Create a poly sphere. cmds.polySphere() # Render it cmds.hwRender() # Render the region where left=20, right=50, bottom=30, top=60.
# And do not write the output to a file.
# cmds.hwRender( renderRegion=(20, 50, 30, 60), notWriteToFile=True ) # Render with the specified width and height.
# cmds.hwRender( width=100, height=200 ) # Returns the imageFileName for image frame 11.
# cmds.hwRender( imageFileName=True, frame=11 ) # Returns the imageFileName for current frame.
# cmds.hwRender( imageFileName=True ) # Returns a version of the image file name after its number pattern
# being represented in a unique way.
# cmds.hwRender( query=True, fixFileNameNumberPattern=True ) # Render the specified render layer. cmds.hwRender( layer='layer1' )
|
|
|