Sat, Feb 1, 10:28 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

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: Extending the number of frames with Python - how?


Ajax ( ) posted Wed, 21 June 2006 at 2:41 AM · edited Thu, 16 January 2025 at 10:32 PM

I'm writing a script that generates a 100 frame animaton, but it doesn't work if the scene has fewer than 100 keyframes.  Is there a Poser Python way to increase the number of keyframes if the scene doesn't have enough?


View Ajax's Gallery - View Ajax's Freestuff - View Ajax's Store - Send Ajax a message


PhilC ( ) posted Wed, 21 June 2006 at 4:57 AM · edited Wed, 21 June 2006 at 5:07 AM

file_345917.gif

There is no Python command to add frames to a scene. So you have to use a little skullduggery. Use the LoadLibraryFigure command to load a cut down PZ3 file.

Tested it to increase or decrease total frame numbers. Worked both ways without Poser raising its "do you want to delete frames" message.

You could even embed the PZ3 into your script, have the numFrames as a variable and get the script to write the file prior to executing LoadLibraryFigure. Yes I know its not a figure but don't tell Poser that :)

 


Ajax ( ) posted Wed, 21 June 2006 at 5:20 PM

Thanks Phil.  That's very sneaky.  Should do the job nicely.


View Ajax's Gallery - View Ajax's Freestuff - View Ajax's Store - Send Ajax a message


PhilC ( ) posted Wed, 21 June 2006 at 5:41 PM

hehe, yes sometimes you have to take Poser Python down a dark alley and give it a serious talking to :biggrin:


face_off ( ) posted Sat, 15 July 2006 at 12:09 AM

Phil - I've been trying to work out a way to do this for ages!  Thank you!

Creator of PoserPhysics
Creator of OctaneRender for Poser
Blog
Facebook


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.