Forum: Poser Python Scripting


Subject: Batch process to make animation from many angles

alexcy23 opened this issue on Feb 17, 2006 ยท 5 posts


svdl posted Fri, 17 February 2006 at 10:20 AM

It can be done. But I'd advise rotating the camera, not the figure. Here's how it goes (more or less, you'll probably have to tweak the script somewhat):

import poser

exportPath="c:animations"

scene = poser.Scene()

for anglecount in range(20):
    angle=anglecount*18
    scene.Camera("Main Camera").Parameter("yRot").SetValue(angle)
    sequenceName="angle" + str(angle)
    for framenum in range(scene.NumFrames()):
        renderName=sequenceName + "frame" + str(framenum)
        scene.Render()
        scene.SaveImage("jpg",os.path.join(exportPath,renderName)

You should set the render options before running the script. Hope this helps, Steven.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff