51f67fafab | ||
---|---|---|
.. | ||
.gitignore | ||
Child_Colour.png | ||
Child_Normal.png | ||
Igloo_Colour.png | ||
Igloo_Normal.png | ||
Makefile | ||
README.md | ||
balloon.blend | ||
cake.blend | ||
cake_albedo.png | ||
cake_normals.png | ||
child.blend | ||
export.py | ||
grape.blend | ||
igloo.blend | ||
small_room.blend | ||
small_room.blend1 | ||
string.blend |
README.md
Automating exports
each blend file has a text block named "export.py" which is usually just the file in this directory
Exporting from the Blender
- Create a new text block by opening "export.py" Make sure to relativize the path by clicking "File>>External Data>>Make paths relative" Right now the script depends on the location of the script to find the root of the blends folder so it will not work if the export.py text block is internal
- Create a collection named "export" and move the objects to be exported inside
- Run the script inside Blender
Exporting from CLI
- Save the blend file with a export collection as above
- Run
make