Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Hwrender example from doc crashing
  RSS 2.0 ATOM  

Hwrender example from doc crashing
Rate this thread
 
62520
 
Permlink of this thread  
avatar
  • Total Posts: 1
  • Joined: 04 December 2011 10:49 PM

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.hwRenderrenderRegion=(20503060), notWriteToFile=True )
# Render with the specified width and height.
#
cmds.hwRenderwidth=100height=200 )
# Returns the imageFileName for image frame 11.
#
cmds.hwRenderimageFileName=Trueframe=11 )
# Returns the imageFileName for current frame.
#
cmds.hwRenderimageFileName=True )
# Returns a version of the image file name after its number pattern
# being represented in a unique way.
#
cmds.hwRenderquery=TruefixFileNameNumberPattern=True )
# Render the specified render layer.
cmds.hwRenderlayer='layer1' )


Replies: 0