Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 12 3:30 am)
You need to edit the script for the file location to save the renders and the frame numbers to render.
It will use firefly to render with whatever settings you have.
saves file as render_xx where xx is the frame number .
definately save a pz3 before you run this in case bad things happen.
import poser
import os
frameslst = [0,5,10] <<<<<<<<<<<<<<<<<<<the frames to render
for cf in frameslst:
# create output name
cfp ="c:/documents and settings/owner/my documents/my renders/" <<< path to save files in
cfo = cfp + "render_" + str(cf) + ".png"
# get the scene and set render type - use current render options
scn = poser.Scene()
scn.SetCurrentRenderEngine(poser.kRenderEngineCodeFIREFLY)
scn.SetFrame(cf)
# render the scene
prr = scn.Render()
print prr
# save the image , same path, as png
print "Saving image as: " + cfo
scn.SaveImage("png", myfilepath + cfo ) <<<<< remove myfilepath + from this line
print "done!"
rename the txt file to a py file and save anywhere in the runtime/python/poserscripts folder
just edit the two lines shown using wordpad or other text editor
run from the file > run python script menu
an error in rendering will stop the script so without a render queue its a bit of run it and hope for the best.
Quote - 0
Saving image as: C:UsersTheOwlDocuments
enderFramesrender_0.png
Traceback (most recent call last):
File "C:Program Files (x86)Smith MicroPoser ProRuntimePythonposerScriptsScriptsMenuRender Markschumrender_frames_list.py", line 32, in ?
scn.SaveImage("png", cfo )
poser.error: A file error occurred.
It didn't work. Something's up on the scn.SaveImage line.
Passion is anger and love combined. So if it looks
angry, give it some love!
I got it!
What I did is I changed all the "" to "/" in the cfp variable and added another "/" in the end.
At first it didn't work because the file I was using is a pzz scene file. So I disabled compression and saved it to pz3 then rerendered.
It worked like a charm!
Thanks so much Markschum! And Happy Thanksgiving!
Passion is anger and love combined. So if it looks
angry, give it some love!
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.
Lets say I created a 30 frame animation and I want to render only frames number 2, 10, and 18. And I want to leave my computer to render these specific frames for me while I am away.
I understand I can simply save different pz3 files for each frame but saving some hard disk space will be good.
So far, I think Poser doesnt offer this kind of rendering, pretty much renders only where the main camera is currently located in the timeline.
Are there other methods or a python script out there that can do this?
Passion is anger and love combined. So if it looks angry, give it some love!