lecture 4-blender-python
lecture 4-blender-python
in python
Lecture Link
https://alexuuni-
my.sharepoint.com/:v:/g/personal/nermeen_kashief_alexu_edu_eg/EbODuBy3LSJCuNx0We
g_8rYB_jFJj7vjuuX6TkP4O6IwbA?e=8WXKjy
import bpy
#creat shapes
bpy.ops.mesh.primitive_cube_add()
Obj1 = bpy.context.active_object
bpy.ops.mesh.primitive_cylinder_add()
# Scale object
# Rotated object
# assuming rotation_mode being euler by default
for I in range(1,40,4):
Obj2.keyframe_insert(data_path="location",frame =I)
Obj2.location.z+=3