Animation w/o armature and lattice

Hi there!

For some reasons, I am interested on how to animate an object without using IPO curves, armature(s) and lattice(s). Actually, my interest is to animate like this only a part of an object (mesh).

Suppose that your selected object is a cone with 32 segments forming its circle base, then the following code will produce 10 JPEGs showing its top vertex moving along X (code for Blender 2.4x):

from Blender import *
import bpy

def Dynamic_anim_cone():
    sce = bpy.data.scenes.active
    ob = sce.objects.active
    me = ob.getData(mesh=1)
    v = me.verts[32]
    x,y,z = v.co
    n = 10
    context = sce.getRenderingContext()
#    context.sizePreset(Scene.Render.PC)
    context.imageType = Scene.Render.JPEG
    renderPath = context.getRenderPath()
    Scene.Render.EnableDispWin()
    for i in range(n):
        x += 0.5
        v.co.x,v.co.y,v.co.z = x,y,z
        context.render()
        filename = renderPath+"IMG_"+str(1000+i)+".jpg"
        context.saveRenderedImage(filename)
    Scene.Render.CloseRenderWindow()
    return

###############################################################

Dynamic_anim_cone()



This is OK and clear to me… My question is if it is possible to re-work the code above to result in the same action (move the top vertex on X) but using a video format rather than JPEG, i.e. something like AVIRAW or AVIJPEG???

Any help on that appreciated! :slight_smile:

Regards,