Forum: Poser Python Scripting


Subject: Writing Python Script to save the LAST frame of an animation...

mmitchell_houston opened this issue on May 12, 2002 · 1 posts


mmitchell_houston posted Sun, 12 May 2002 at 11:49 AM

I'm working on a long project so I'm breaking it down into lots of smaller scenes. To do this, I need the following scenes to start with the last frame of the preceeding scene. EXAMPLE: 1) I create and animate a scene with figure, light, and camera movements. I save it as Scene001. 2) I go to the Keyframe Editor, go to the last frame, and make a keyframe for everything (all figures, props, lights, cameras, etc.). 3) I drag that keyframe all the way to Frame 1. 4) Under Animation Setup, I reset the animation length to 1 (this deletes all the other frames). 5) I save the file as Scene002. 6) I'm ready to start creating the next scene! --------------------- I do this process A LOT. So, it seems like this is a perfect candidate for Python Scripting. Now, my cursory examination of the Python scripting guide in my Pro Pack manual doesn't list much for accessing Keyframes. So, I'm wondering how to do this. It seems like I'll have to do it like this: 1) get all the properties for all the figures, objects, lights, cameras, etc. 2) then resize the animation to 1 frame 3) and then apply all the stored properties to the everything (figures, objects, lights, cameras, etc.) Does this sound right? Guidance will be greatly appreciated (it would even be more appreciated if someone has already written this script and will share it!) -------------------------- By the way, is there a "Select All" method that allows you to get all parameters/properties from a specific frame?

- - - - - - - - - -
System: Lenovo Legion Pro 7 16IRX9H Laptop | Windows 11 Professional | 32GB RAM |  14th Gen Intel® Core™ i9-14900HX | Nvidia RTX 4090 Laptop GPU 16GB 9728 CUDA Cores
mikemitchellonline.blogspot.com   |   Poser Noir Comics Tutorial   |   Illustrations Honored by Renderosity