I have a noob question about how to change the object data (ie. verts) via keyframes, in order to morph a shape over time. I’ve posted my basic script that creates a cube but I’m unsure about where to go to achieve changes in the shape - is this possible? and how would I do this?
heres the code
import bpy
import bmesh
from mathutils import Matrix
from math import radians
verts = [(-1, -1, -1), (-1, 1, -1), (1, 1, -1), (1, -1, -1), (-1, -1, 1), (-1, 1, 1), (1, 1, 1), (1, -1, 1)]
faces = [(0,1,2,3), (0,1,5,4), (1,2,6,5), (2,3,7,6), (3,0,4,7), (4,5,6,7)]
me = bpy.data.meshes.new("cubey")
ob = bpy.data.objects.new("cubey", me)
bpy.context.scene.objects.link(ob)
me.from_pydata(verts, [], faces)
me.update(calc_edges=True)
me = bpy.context.object
ob = bpy.context.object