Maya won't batch render at all!


#1

Hi all

I have a bit of an issue with Maya 8.5 & 2008 on a mac. Basically I can’t batch render at all. That’s with Mental Ray or Maya Software. I open the batch render options after setting my render settings and hit batch render. The script editor says “// Rendering with mental ray… //” (or maya software) then just sits there. No more info about rendering comes up no matter how long I leave it. I’ve tried dumping prefs and re-installing versions 8.5 and 2008 separately. Still nothing works.

Can anyone help? Many thanks!


#2

Hi chriscurtis,

may you can figure out a little bit more infos…

a) Mayarender:

  • Close Maya
  • Pleez go to your personal Maya folder (e.g. C:\Documents\maya) and delete the mayaRenderLog.txt
  • Start Maya and try to render with Mayasoft
  • After a while look in the new mayaRenderLog.txt - may there is a hint what happens…
  • Also take a look in Mayas Outputwindow and in the history of the scripteditor

b) MR in Maya 8.5

  • Go to Render -> Batchrender
  • Set under “Messages” Verbosity Level" to “Progress Messages” or to “Detailed Messages”
  • Render
  • look in the script editor (or was it Output window?) You will see a lot of lines printed out what MR is doing…

#3

intel or PPC ? (which model aswell)

running a batch render on a intel starts a program called “batch render monitor” which isn’t a UB yet (so you will be running that in rosetta which can put alot of work on your CPUs), try to kill that app and see if that helps.


#4

Does it Render when you render from a command line prompt?

(It’s more efficient to render from the command line :slight_smile: )


#5

Hi. Thanks for the replies!

Script editor history says something like “saving temp file” then “rendering with mental ray” and that’s it. It does no more.

I’m running Maya on an intel iMac.

I’ve done a web search on batch rendering and found some useful stuff on rendering via the terminal. However I can’t find much about commands to use. So far I can get “render -r file (file to render dragged here)” to work. It means setting the project and render settings before hand then dragging the file into the terminal but is an ok fix for now. It still doesn’t excuse the fact that I can’t batch render within Maya though. If anyone knows any other commands then that would help greatly.

I’ll try quitting the batch render monitor and see what that does. Thanks for your help guys!


#6

Ok have now tried batch rendering and quitting the batch render monitor. I now get the sequence rendering in the desired location. I just don’t get any feedback in the script editor. Also I can’t cancel the batch render as Maya reckons it has not started rendering yet even though it has. I have to quit Maya to get it to stop. Not ideal but ok for now.


#7

However I can’t find much about commands to use

I'm not sure if I understand you. Did you look for an explanation of the flags you can use with the command line?

this should also go on a mac:
>render -help -r sw

(sw = software renderer; hw = hardware renderer; mr = Mentalray)

Maya Software Spec:


    C:\Users\Michi>render -help -r sw
    
    Usage: render [options] filename
           where "filename" is a Maya ASCII or a Maya binary file.
    
    Common options:
      -help              Print help
      -test              Print Mel commands but do not execute them
      -verb              Print Mel commands before they are executed
      -keepMel           Keep the temporary Mel file
      -listRenderers     List all available renderers
      -renderer string   Use this specific renderer
      -r string          Same as -renderer
      -proj string       Use this Maya project to load the file
      -log string        Save output into the given file
    
    Specific options for renderer "sw": Maya software renderer
    
    General purpose flags:
      -rd path              Directory in which to store image files
      -im filename          Image file output name
      -fnc int              File Name Convention: any of name, name.ext, ... See the
            Render Settings window to find available options. Use namec and
            namec.ext for Multi Frame Concatenated formats. As a shortcut,
            numbers 1, 2, ... can also be used
      -of string            Output image file format. See the Render Settings window
            to find available formats
    
      -s float              Starting frame for an animation sequence
      -e float              End frame for an animation sequence
      -b float              By frame (or step) for an animation sequence
      -pad int              Number of digits in the output image frame file name
            extension
      -rfs int              Renumber Frame Start: number for the first image when
            renumbering frames
      -rfb int              Renumber Frame By: step used for renumbering frames
      -se int               Obsolete flag identical to -rfs. Used only for backward
            compatibility
      -be int               Obsolete flag identical to -rfe. Used only for backward
            compatibility
    
      -cam name             Specify which camera to be rendered
      -rgb boolean          Turn RGB output on or off
      -alpha boolean        Turn Alpha output on or off
      -depth boolean        Turn Depth output on or off
      -iip                  Ignore Image Planes turn off all image planes before
            rendering
    
      -x int                Set X resolution of the final image
      -y int                Set Y resolution of the final image
      -percentRes float     Renders the image using percent of the resolution
      -ard float            Device aspect ratio for the rendered image
    
    More advanced flags:
    
    Anti-aliasing quality:
      -eaa int              The anti-aliasing quality of EAS (Abuffer). One of:
            highest(0), high(1), medium(2), low(3)
      -ss int               Global number of shading samples per surface in a pixel
      -mss int              Maximum number of adaptive shading samples per surface
            in a pixel
      -mvs int              Number of motion blur visibility samples
      -mvm int              Maximum number of motion blur visibility samples
      -pss int              Number of particle visibility samples
      -vs int               Global number of volume shading samples
      -ufil boolean         If true, use the multi-pixel filtering; otherwise use
            single pixel filtering
      -pft int              When useFilter is true, identifies one of the following
            filters: box(0), triangle(2), gaussian(4), quadratic(5)
      -pfx float            When useFilter is true, defines the X size of the filter
      -pfy float            When useFilter is true, defines the Y size of the filter
      -rct float            Red channel contrast threshold
      -gct float            Green channel contrast threshold
      -bct float            Blue channel contrast threshold
      -cct float            Pixel coverage contrast threshold (default is 1.0/8.0)
    
    Raytracing quality:
      -ert boolean          Enable ray tracing
      -rfl int              Maximum ray-tracing reflection level
      -rfr int              Maximum ray-tracing refraction level
      -sl int               Maximum ray-tracing shadow ray depth
    
    Field Options:
      -field boolean        Enable field rendering. When on, images are interlaced
      -pal                  When field rendering is enabled, render even field
            first (PAL)
      -ntsc                 When field rendering is enabled, render odd field
            first (NTSC)
    
    Motion Blur:
      -mb boolean           Motion blur on/off
      -mbf float            Motion blur by frame
      -sa float             Shutter angle for motion blur (1-360)
      -mb2d boolean         Motion blur 2D on/off
      -bll float            2D motion blur blur length
      -bls float            2D motion blur blur sharpness
      -smv int              2D motion blur smooth value
      -smc boolean          2D motion blur smooth color on/off
      -kmv boolean          Keep motion vector for 2D motion blur on/off
    
    Render Options:
      -ifg boolean          Use the film gate for rendering if false
      -edm boolean          Enable depth map usage
      -g float              Gamma value
      -premul boolean       Premultiply color by the alpha value
      -premulthr float      When premultiply is on, defines the threshold used to
            determine whether to premultiply or not
    
    Memory and Performance:
      -uf boolean           Use the tessellation file cache
      -oi boolean           Dynamically detects similarly tessellated surfaces
      -rut boolean          Reuse render geometry to generate depth maps
      -udb boolean          Use the displacement bounding box scale to optimize
            displacement-map performance
      -mm int               Renderer maximum memory use (in Megabytes)
    
    Render Layers and Passes:
      -rl boolean|name(s)   Render each render layer separately
      -rp boolean|name(s)   Render passes separately. 'all' will render all passes
      -rs boolean           Obsolete flag. Used only for backward compatibility
      -sel boolean|name(s)  Selects which objects, groups and/or sets to render
      -l boolean|name(s)    Selects which display and render layers to render
    
    Mel callbacks
      -preRender string     Mel code executed before rendering
      -postRender string    Mel code executed after rendering
      -preLayer string      Mel code executed before each render layer
      -postLayer string     Mel code executed after each render layer
      -preFrame string      Mel code executed before each frame
      -postFrame string     Mel code executed after each frame
      -pre string           Obsolete flag
      -post string          Obsolete flag
    
    Other:
      -rep boolean          Do not replace the rendered image if it already exists
      -reg int int int int  Set sub-region pixel boundary of the final image:
            left, right, bottom, top
      -n int                Number of processors to use (0 indicates use all
            available)
      -mf boolean           Append image file format to image name if true
      -sp boolean           Generate shadow depth maps only
      -amt boolean          Abort renderer when encountered missing texture
      -ipr boolean          Create an IPR file
      -keepPreImage boolean Keep the renderings prior to post-process around
    
    *** Remember to put a space between option flags and their arguments. ***
    Any boolean flag will take the following values as TRUE: on, yes, true, or 1.
    Any boolean flag will take the following values as FALSE: off, no, false, or 0.
    
        e.g. -x 512 -y 512 -cam persp -im test -of jpg -mb on -sa 180 file
    
    
    C:\Users\Michi>
    

Mental Ray Spec.:


  C:\Users\Michi>render -help -r mr
  
  Usage: render [options] filename
  	   where "filename" is a Maya ASCII or a Maya binary fil
  
  Common options:
    -help			  Print help
    -test			  Print Mel commands but do not execute t
    -verb			  Print Mel commands before they are exec
    -keepMel		   Keep the temporary Mel file
    -listRenderers	 List all available renderers
    -renderer string   Use this specific renderer
    -r string		  Same as -renderer
    -proj string	   Use this Maya project to load the file
    -log string		Save output into the given file
  
  Specific options for renderer "mr": Mentalray renderer
  
  General purpose flags:
    -rd path				Directory in which to store image
    -im filename			Image file output name
    -of string			  Output image file format. See the
  		to find available formats
  
  Frame numbering options
    -s float				Starting frame for an animation se
    -e float				End frame for an animation sequenc
    -b float				By frame (or step) for an animatio
    -pad int				Number of digits in the output ima
  		extension
    -rfs int				Renumber Frame Start: number for t
  		renumbering frames
    -rfb int				Renumber Frame By (or step) used f
    -fnc int				File Name Convention: any of name,
  		Render Settings window to find available options. Us
  		namec.ext for Multi Frame Concatenated formats. As a
  		numbers 1, 2, ... can also be used
  
  Camera options
    -cam name			   Specify which camera to be rendere
    -rgb boolean			Turn RGB output on or off
    -alpha boolean		  Turn Alpha output on or off
    -depth boolean		  Turn Depth output on or off
    -iip					Ignore Image Planes. Turn off all
  		rendering
  
  Resolution options
    -x int				  Set X resolution of the final imag
    -y int				  Set Y resolution of the final imag
    -percentRes float	   Renders the image using percent of
    -ard float			  Device aspect ratio for the render
  
  Render Layers and Passes:
    -rl boolean|name(s)	 Render each render layer separatel
    -rp boolean|name(s)	 Render passes separately. 'all' wi
    -sel boolean|name(s)	Selects which objects, groups and/
  
  Mel callbacks
    -preRender string	   Mel code executed before rendering
    -postRender string	  Mel code executed after rendering
    -preLayer string		Mel code executed before each rend
    -postLayer string	   Mel code executed after each rende
    -preFrame string		Mel code executed before each fram
    -postFrame string	   Mel code executed after each frame
    -pre string			 Obsolete flag
    -post string			Obsolete flag
  
  Other:
    -v/verbose int		  Set the verbosity level.
  		0 to turn off messages
  		1 for fatal errors only
  		2 for all errors
  		3 for warnings
  		4 for informational messages
  		5 for progress messages
  		6 for detailed debugging messages
    -rt/renderThreads int   Specify the number of rendering th
    -art/autoRenderThreads  Automatically determine the number
    -mem/memory int		 Set the memory limit (in MB).
    -aml/autoMemoryLimit	Compute the memory limit automatic
    -ts/taskSize int		Set the pixel width/height of the
    -at/autoTiling		  Automatically determine optimal ti
    -rnm boolean			Network rendering option. If true,
  		almost everything on slave machines, thus reducing t
  		master machine
    -lic string			 Specify satellite licensing option
  		mc/complete.
    -reg int int int int	Set sub-region pixel boundary of t
  		left, right, bottom, top
   *** Remember to place a space between option flags and thei
  Any boolean flag will take the following values as TRUE: on,
  Any boolean flag will take the following values as FALSE: of
  
  	e.g. -s 1 -e 10 -x 512 -y 512 -cam persp -of jpg file.
   
Cheers,
mickna

#8

Yes, what you have given me is what I meant. Thanks for your help!


#9

welcome :slight_smile:


#10

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.