Mon, Feb 10, 11:30 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Batch process to make animation from many angles


alexcy23 ( ) posted Fri, 17 February 2006 at 8:18 AM · edited Mon, 10 February 2025 at 11:04 AM

I am new to the Poser screen so excuse my ignorance please. What I basically want to do is the following: I take one figure and I create an animation sequence with it. For example running. Then I want to export that animation,ie 60 frames in image files. And I want to do that same image sequence from different angles. Ie. 360 degrees can give 20 angles (each spaced 18 degrees apart) so at the end I will have a sequence of images for every specific angle. I rotate the figure about the Y-axis to change the viewing angle. I want python once I give the command to export my image files for angle 0, then rotate my figure by 18 degrees and export again and so on until it reaches a full circle.. Can somebody please help to do that since I never before worked with Python. Thank you


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


mkrueger ( ) posted Fri, 17 February 2006 at 1:37 PM

Missing a ")" at the end there! ;)


alexcy23 ( ) posted Sat, 18 February 2006 at 3:07 AM

Hey I tried the above script but I am getting an error in the line with "scene.camera ..." It says: File "", line 15, in ? AttributeError: Camera Can you please help me? Thank you


nruddock ( ) posted Sat, 18 February 2006 at 4:30 AM

There is no "Camera" method, replace with "Actor" and see if that works.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.