I originally thought I could just keyframe and export the animation of the 'random seed' property of the addon but blender just gives me an error:
Now I'm trying to write a python script that uses the random shape generator addon and exports and saves the viewport rendered image of each shape. I want to be able to export an arbitrary number of random shapes into a series of pngs.
These are the steps I'm trying to automate:
This is my script that's not working:
import bpy for x in range(0,1): bpy.ops.mesh.shape_generator(random_seed=1001, update_draw_only=True, show_seed_panel=True) bpy.ops.render.opengl() bpy.ops.render.render(use_viewport=True) bpy.ops.file.filenum(increment=1) bpy.ops.file.execute() bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete(use_global=False)
Is there a better way of doing this?