Fri, Nov 29, 5:56 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 Sep 18 2:50 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: Deleting all Frames with Python


Ralf61 ( ) posted Thu, 20 January 2005 at 11:50 AM · edited Fri, 22 November 2024 at 10:32 PM

Can somebody gmme a short hint how to delete all Frames within Python? There is a command 'DeleteAllKeyFrames' but this is not what I'm looking for. I need to erase all frames (of course not the first one :-) Thanks in forward


ockham ( ) posted Thu, 20 January 2005 at 1:12 PM
Ralf61 ( ) posted Thu, 20 January 2005 at 2:41 PM

Am I blind or did I miss something? :-) I can'T find a command to delete a frame in your useful code. Only for Keyframes. Sorry that I have to ask again ...


Ralf61 ( ) posted Thu, 20 January 2005 at 2:48 PM

I assume that I should use something like poser.Scene().NumFrames() = 1 But this doesn't work. OR should I use SetOutputRange. But this isn't exactly what I'm looking for ... sigh


ockham ( ) posted Thu, 20 January 2005 at 4:33 PM

file_172677.jpg

Sorry, I thought you meant keyframes. In order to delete (or add) actual frames, Python has to play a trick, which only works when there's a figure in the scene. The attached file holds an example of Fake Frames. The little code at the bottom is just to test the main routine; you would include the routine in your own code and call it in the same way.

My python page
My ShareCG freebies


Ralf61 ( ) posted Thu, 20 January 2005 at 4:41 PM

Thank you again. Thats what I needed! I always wonder how some people find such a solution. Great!


underdog ( ) posted Mon, 24 January 2005 at 6:12 PM · edited Mon, 24 January 2005 at 6:15 PM

Attached Link: http://www.renderosity.com/messages.ez?Form.ShowMessage=1854359

Thanks Ockham. That's a neat trick. I knew that adding frames was going to work, but finding the way to delete frames is a great tool to have around.

Ah, there it is... I thought I had asked about this months ago.. It was back in July. Good things come to those that wait.

Message edited on: 01/24/2005 18:15


3dtrue ( ) posted Fri, 22 April 2005 at 2:06 AM

wow! thanks ockham. you rock! i love how the Poser PDF manual never bothers to tell you there is not a call to add/delete the total number of frames. I've been stabbing for a solution and here it is. thanks again.


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.