I am doing a complicated 3D scene model. Actually, I am using the blender GUI (not python script) to do it. Once I designed the scene, I need to move randomly an object in the scene for many times. So, I am wondering, if possible to write a python script that execute the *.blend file and then in the same script, I write lines to move randomly the object. Any suggestion?
import bpy from random import randint # Generate 50 cubes in random locations for i in range(50): bpy.ops.mesh.primitive_cube_add(location = [ randint( -10, 10 ) for axis in 'xyz' ])
Replace cube with your model and this should work.