Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
something like this will work
import poser
scn = poser.Scene()
figs = scn.Figures()
for fig in figs()
nam = fig.Name()
scn.SelectFigure(fig)
scn.SetFrame(10)
etc.
Not: you can just cut and paste in the keyframe editor. select all frame 10 and copy it and paste to frame 2. No need to save and load pose files.
Ah! Many thanks. I had not discovered "SelectFigure" before. That is perfect. Thank you again!
I appreciate it is generally easier to use the Keyframe editor; however my Scene has over 50 Figures and I want to try various combinations and permutations; so need to repeat the process many times. In addition, with so many Figures, Poser tend to slow down and the Keyframe Editor window can sometimes feel a little unresponsive.
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.
I have some Figures in a scene. I want to create Pose files (pz2) for each Figure, based on their pose at Frame 10. Then I want to load that figure's Pose file into Frame 2.
But. 'SaveLibraryPose' and 'LoadLibraryPose' only operate on the 'CurrentFigure'. Although I can itinerate through the Figures, I cannot find a way to change the 'CurrentFigure'.
I hope I am missing something obvious. I have commented out (#) some lines which I though might be related. Here is the basic code:
for actors in scene.Figures():
#a= actors.Name()
#actor = scene.CurrentFigure()
scene.SetFrame(10)
scene.SaveLibraryPose(pose1)
scene.SetFrame(2)
scene.LoadLibraryPose(pose1)