I have a .blend file with some pre-configured lighting, camera,... The script in the file loads an external .stl file and render in that condition and do a simple bpy.ops.render.render(), then save the rendered image.

Now I want to automate this task. I know that I can write a .py file and put some blender logic into it, then run from command line (with blender compiled as a module), but how about a .blend file? I want to pass the path to a .stl via sys.argv.

An alternative method is to write a new script and set the lighting, camera angle,... in the script, however, I don't have that much knowledge to do so, as the .blend file was prepared by someone else.



You must log in to answer this question.

Browse other questions tagged .