Forum: Poser Python Scripting


Subject: Extending the number of frames with Python - how?

Ajax opened this issue on Jun 21, 2006 · 5 posts


PhilC posted Wed, 21 June 2006 at 4:57 AM

There is no Python command to add frames to a scene. So you have to use a little skullduggery. Use the LoadLibraryFigure command to load a cut down PZ3 file.

Tested it to increase or decrease total frame numbers. Worked both ways without Poser raising its "do you want to delete frames" message.

You could even embed the PZ3 into your script, have the numFrames as a variable and get the script to write the file prior to executing LoadLibraryFigure. Yes I know its not a figure but don't tell Poser that :)