2
$\begingroup$

I'm trying to render 1px strips of images. Is there a way to set the render border in pixels?

I'm rendering a total image that is 1440x900 pixels. What I need to do is render it in vertical 1px strips. So 1440 images each 1x900 pixels.

I'm currently setting the border min and border max with python as follows:

render.border_min_x = i/1440
render.border_max_x = (i+1)/1440
render.border_min_y = 1
render.border_max_y = 900

It works okay but I'm finding that the output files vary in dimensions some are 1px some 2px and others 0px (which makes the script crash)

Is python limiting the number of decimal places and that is why the 0.0 - 1.0 scale isn't as accurate as I need.

Any help or work-around?

$\endgroup$
3
  • $\begingroup$ What for? Could simply splitting it after the render work, or are you trying to optimise renders by splitting the thing between many computers / threads / somethings? $\endgroup$
    – Mörkö
    Commented Oct 6, 2015 at 5:51
  • $\begingroup$ It might be easier to render full resolution and split the image with Imagemagick or similar. (imagemagick.org/Usage/crop) You could write a python script to output each row. $\endgroup$
    – volvis
    Commented Oct 6, 2015 at 6:03
  • 2
    $\begingroup$ @akupresanin , border_min/max_x/y should range between 0.0 and 1.0 too. I think your min_y = 1 and max_y = 900 are typos ? $\endgroup$
    – zeffii
    Commented Oct 6, 2015 at 6:57

0

You must log in to answer this question.

Browse other questions tagged .