[Bf-blender-cvs] CVS commit: blender/source/creator creator.c

Campbell Barton cbarton at metavr.com
Sun Mar 19 17:25:33 CET 2006


campbellbarton (Campbell Barton) 2006/03/19 17:25:33 CET

  Modified files:
    blender/source/creator creator.c 
  
  Log:
  Added a way to set the renderpath (dir and name) from the command line.
  eg
  Blender  -b c:\blends\test.blend  -o "c:\renders\render_#.png"  -x 0  -F PNG
  
  -x 1/0 for extension enable/disable
  -F for format/filetype
  
  This is important because somebody elses Blend files can render anywhere on your PC, possibly a security risk.
  And nice for renderfarms to be able to set the path without running a python script inside the blend file.
  
  blender --help (render opts only)
  Render options:
    -b <file>     Render <file> in background
      -S <name>   Set scene <name>
      -f <frame>  Render frame <frame> and save it
      -s <frame>  Set start to frame <frame> (use with -a)
      -e <frame>  Set end to frame (use with -a)<frame>
      -o <path>   Set the render path and file name.
        Use // at the start of the path to
          render relative to the blend file.
        Use # in the filename to be replaced with the frame number
        eg: blender -b foobar.blend -o //render_# -F PNG -x 1
      -F <format> Set the render format, Valid options are..
          TGA IRIS HAMX FTYPE JPEG MOVIE IRIZ RAWTGA
          AVIRAW AVIJPEG PNG AVICODEC QUICKTIME BMP
          HDR TIFF EXR MPEG FRAMESERVER CINEON DPX
                 Use // at the start of the path to
      -x <bool>   Set option to add the file extension to the end of the file.
  
  Added details to the -v option
  Eg
  blender -v
  Blender 2.41 Build
          build date: 2006-03-20
          build time: 16:16:34
          build platform: linux-glibc2.3.6-i386
          build type: dynamic
  
  Also fixed bugs where nagative/realy big  frames could be set- causing Blender to crash.
  
  Revision  Changes    Path
  1.58      +102 -12   blender/source/creator/creator.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/creator/creator.c.diff?r1=1.57&r2=1.58&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list