Blender Python Scripting



Import-Export SuiteIO-Menu.zip (for v2.32)
This suite of Python modules enables Blender to read and write ten 3D file formats. It allows radiosity solutions to be exported to trueSpace, Wings3D, VideoScape, Nendo, and LightWave.

  1. Blender Python Scripting Tutorial
Blender python scripting tutorialBlenderBlender python scripting tutorial

I am trying to render and save multiple images through python script in blender. I know how to render and save the image through the Blender GUI but I want to do it all through my script since I am using a set of nested loops and need to save multiple images. I am able to render the image and I guess save the image with the output being successful. Scripting & Extending Blender » Scripting & Security; Scripting & Security¶ The ability to include Python scripts within blend-files is valuable for advanced tasks such as rigging and automation. However, it poses a security risk since Python does not restrict what a script can do.

It was formerly called the Radiosity Import Export Suite mainly because it was developed to import/export vertex-colored meshes using my own custom file format (*.radio), and because I wanted to know how vertex colors and meshes were stored. But now UV support and other formats have been added (see the table below).

Includes some nice sample objects IO-Examples.zip to get you started: cornell-box.radio, hand.radio, plane.radio, sphere.radio, torus-knot.radio, and lumpy-torus.radio.

Python

Format

I/O

UV

VCOL

Application

*.mesh

R/W

R/W

_

LightFlow

*.ndo

R/W

_

W

Nendo

*.cob

R/W

R/W

W

trueSpace

*.scn

R

R

_

trueSpace

*.obj

W

_

_

VideoScape

*.radio

R/W

_

R/W

Radio

*.lwo

R/W

W

W

LightWave

*.raw

R/W

_

_

Raw Triangle

*.off

R/W

_

_

DEC Object

*.wings

R/W

_

W

Wings3D

Blender Python Scripting Tutorial

For Blender 2.28
Extract IO-Suite2.zip to a directory on your pythonpath (or your BlenderDir), then run the contents of IO-Suite1.zip to import or export. Most of the new work is in the lightwave module (matererial indices, vertex colors, materials, specular highlights, etc.).