underdog opened this issue on Jul 16, 2004 ยท 3 posts
underdog posted Fri, 16 July 2004 at 1:05 AM
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.