Thu, Feb 27, 2:38 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: Adding frames to an an animation?


underdog ( ) posted Fri, 16 July 2004 at 1:05 AM · edited Wed, 26 February 2025 at 11:37 PM

This seems trivial, but I can't find it. I am worried that it's really NOT there! I want to add frames to an animation (also to remove frames). I have read and re-read the poser python docs and nothing in there seems to control the frame count. I would think that scene.NumFrames() (which returns the count) would have a corresponding "setter" method "scene.Frames(number)" but it doesn't? I might get away with it by creating a fake 2-frame pose, then setting scene.CurrentFrame(scene.NumFrames) and then adding the pose file (which might force adding a frame) but man-oh-man what an ugly hack.. :)


markschum ( ) posted Fri, 16 July 2004 at 11:27 AM

Why don't you just do a move in the keyframe editor. Select the framees you want moved and drag them to the new position. There was also a tip that you can drag detail from the keyframe editor to a spreadsheet, adjust it and paste it back. Python does have a setframe instruction but that just makes that frame the current frame. (I don't have the manual here but its a scene function - like scene.SetFrame(x))


underdog ( ) posted Fri, 16 July 2004 at 9:40 PM

Sure, I can add frames manually in the keyframe editor, etc, but I was asking if there was a way to add frames from within a running Python script. Let's say that the user starts my script with a current frame of 30 out of 50 total and the script generates 30 frames of output. I would want to ask if it's ok to add 10 frames just like applying a multi-frame pose asks if it's ok to increase the number of frames.


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.