Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 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))
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.
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.
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.. :)