Forum: Poser Python Scripting


Subject: multiple render with a script ?

kyo opened this issue on Oct 13, 2003 ยท 5 posts


kyo posted Mon, 13 October 2003 at 11:22 AM

i'm looking for a python script to make severals renders with one click : -my scene is ready -my boss want a render of this scene in following sizes: A6-A5-A4-A3 (europeans standart) theses render are pretty long... is this possible to have a script generating theses renders size without prompt for filename and savelocation, just one click and my computers works at night, and the next morning , my differents renders are saved in a directory, ready to print... thanks to everyone for help


smiller1 posted Mon, 13 October 2003 at 11:53 AM

Why don't you render the largest size and then use a 2D graphics program to create the smaller sizes?


ockham posted Mon, 13 October 2003 at 12:49 PM

As has been discussed before, part of the action can be automated, but the saving to disk -- when the render is done to a New Window -- can't be automated. So it's really not worth automating. ------------------------------- Incidentally, I made some progress on solving that problem with an external EXE, but ran into an obstacle that I couldn't get past. I'm tempted to post the partial solution here, with the C code, so that somebody might be able to fix it. The EXE locates Poser's "Render n" windows and saves them to disk, but the save includes the non-client area of the window and doesn't scroll. I suspect the reason why Poser always scrolls the client area is exactly to prevent this kind of external reading; the full image may not be contained in the HWND. But this is only a suspicion......

My python page
My ShareCG freebies


kyo posted Thu, 16 October 2003 at 3:58 AM

well, thanks for answering... smiller1 : the 2d graphic (aka photoshop) not good for what i want: A6 - 300 dpi A5 - 300 dpi A4 - 300 dpi A3 - 300 dpi if i render the bigger size in 300 dpi [ex: A3 in 300 dpi can give me a A5 in 600 dpi (without quality loss) but i need too a A4 300dpi to give me A6 600 dpi ....] in fact i 'm looking for a script wich could be easely customised to save time, because sometime, print machine Pro ask for 1200 dpi, other time 300 dpi depending weight of paper type... I hope Poser Programmers fix this in poser 6, a kind of batch rendering with size,resolution and save location options, for the night working computer. i 'm boring of theses renders you never know when end comes, just pray for computer never crash before end of render :-)) especially on windows OS...


WeirdJuice posted Sun, 19 October 2003 at 2:34 PM

The dpi value is not relevant for computer generated images, and can effectively be adjusted post-rendering or post-sampling in a paint program. It only really acts as a "hint" for the printer to convert pixel dimensions into inches, and it is really more than an number embedded in the image file or data. At the end of the day, the only "real" values are the pixel width and height dimensions. The best solution is to render a single image in the maximum resolution and, as smiller1 says, scale it in a paint program according to the specific image size/dpi demands of your printing solution, if you cannot simply adjust the print size of your maximum resolution image appropriately. Bill