pd
12-02-2007, 09:17 AM
Hi,
I'm using a script to split a high resolution render in smaller chunks, so that I don't run out of memory. It works quite well, but it saves only to .bmp. What would be really nice is, if I could change this to .exr. I've tried replacing everything 'bmp' with 'exr' but it didn't work, so I guess it takes something more to do this.
-------------------------------------
--- BIGRENDER ---
-------------------------------------
-- Make a "infinite" render without--
-- memory problems and compose it --
-- after rendering. --
-------------------------------------
-- Author : Tomas Cayuela --
-- August 2003 --
-- tomasc@salleurl.edu --
-------------------------------------
plugin RenderEffect BIGRend
name:"BIGRender"
classID:#(6545,456581)
version:1
(
rollout params "BIGRender Parameters" (
group "Output Size" (
spinner tamH "Width: " align:#left range:[0,99999,5000] type:#integer fieldWidth:50
spinner tamV "Height:" align:#left range:[0,99999,5000] type:#integer fieldWidth:50
)
group "Subdivision"(
spinner subdivH "Subdivide Horizontal by: " align:#left range:[1,20,20] type:#integer fieldWidth:40
spinner subdivV "Subdivide Vertical by: " align:#left range:[1,20,20] type:#integer fieldWidth:40
)
group "Render"(
button filsav "Save as..."
checkbox vf "Display Renders" checked:false
edittext akita "" enabled:false
button rend "RENDER" enabled:false
label tantode "0/0" align:#left
progressBar barra
)
group "About"(
label sobre "BIGRender"
label sobre1 "Tomas Cayuela Caudevilla"
label sobre3 "Discreet Training Instructor"
label sobre2 "tomasc@salleurl.edu"
label sobre4 "This Plugin is FREEWARE"
)
on filsav pressed do(
filenam=getSaveFileName caption:"Save as:" types:"OpenEXR Image File(*.exr)|*.exr|"
akita.text=filenam
rend.enabled=true
)
on rend pressed do(
barra.value=0
prog=0
rend.enabled=false
sH=tamH.value/subdivH.value
sV=tamV.value/subdivV.value
for j=1 to subdivV.value do(
for i=1 to subdivH.value do (
if keyboard.escPressed then exit
a=(j-1)*sV
b=(i-1)*sH
c=j*sV
d=i*sH
indexH=i-1
indexV=j-1
arx_nom=getfilenameFile akita.text
arx_path=getfilenamePath akita.text
arxiu = arx_path + arx_nom + indexV as string + "_" + indexH as string + ".exr"
render vfb:vf.checked outputfile:arxiu outputwidth:tamH.value outputheight:tamV.value renderType:#crop region:#(b,a,d,c)
barra.value=barra.value+(100.0/(subdivH.value*subdivV.value))
prog=prog+1
prog2=subdivH.value*subdivV.value
progf=prog as string + "/" + prog2 as string
tantode.text=progf
)
barra.value=barra.value+(100.0/(subdivH.value*subdivV.value))
)
barra.value=100
)
)
)
Any kind of help or any pointer in the right direction is much appreciated. Thanks in advance!
edit: I'm using R9 by the way and I'm aware that I could also contact the author of this script. However, I'm not sure if he provides support for this, because he now sells a newer version of this script, which is obviously no longer freeware.
I'm using a script to split a high resolution render in smaller chunks, so that I don't run out of memory. It works quite well, but it saves only to .bmp. What would be really nice is, if I could change this to .exr. I've tried replacing everything 'bmp' with 'exr' but it didn't work, so I guess it takes something more to do this.
-------------------------------------
--- BIGRENDER ---
-------------------------------------
-- Make a "infinite" render without--
-- memory problems and compose it --
-- after rendering. --
-------------------------------------
-- Author : Tomas Cayuela --
-- August 2003 --
-- tomasc@salleurl.edu --
-------------------------------------
plugin RenderEffect BIGRend
name:"BIGRender"
classID:#(6545,456581)
version:1
(
rollout params "BIGRender Parameters" (
group "Output Size" (
spinner tamH "Width: " align:#left range:[0,99999,5000] type:#integer fieldWidth:50
spinner tamV "Height:" align:#left range:[0,99999,5000] type:#integer fieldWidth:50
)
group "Subdivision"(
spinner subdivH "Subdivide Horizontal by: " align:#left range:[1,20,20] type:#integer fieldWidth:40
spinner subdivV "Subdivide Vertical by: " align:#left range:[1,20,20] type:#integer fieldWidth:40
)
group "Render"(
button filsav "Save as..."
checkbox vf "Display Renders" checked:false
edittext akita "" enabled:false
button rend "RENDER" enabled:false
label tantode "0/0" align:#left
progressBar barra
)
group "About"(
label sobre "BIGRender"
label sobre1 "Tomas Cayuela Caudevilla"
label sobre3 "Discreet Training Instructor"
label sobre2 "tomasc@salleurl.edu"
label sobre4 "This Plugin is FREEWARE"
)
on filsav pressed do(
filenam=getSaveFileName caption:"Save as:" types:"OpenEXR Image File(*.exr)|*.exr|"
akita.text=filenam
rend.enabled=true
)
on rend pressed do(
barra.value=0
prog=0
rend.enabled=false
sH=tamH.value/subdivH.value
sV=tamV.value/subdivV.value
for j=1 to subdivV.value do(
for i=1 to subdivH.value do (
if keyboard.escPressed then exit
a=(j-1)*sV
b=(i-1)*sH
c=j*sV
d=i*sH
indexH=i-1
indexV=j-1
arx_nom=getfilenameFile akita.text
arx_path=getfilenamePath akita.text
arxiu = arx_path + arx_nom + indexV as string + "_" + indexH as string + ".exr"
render vfb:vf.checked outputfile:arxiu outputwidth:tamH.value outputheight:tamV.value renderType:#crop region:#(b,a,d,c)
barra.value=barra.value+(100.0/(subdivH.value*subdivV.value))
prog=prog+1
prog2=subdivH.value*subdivV.value
progf=prog as string + "/" + prog2 as string
tantode.text=progf
)
barra.value=barra.value+(100.0/(subdivH.value*subdivV.value))
)
barra.value=100
)
)
)
Any kind of help or any pointer in the right direction is much appreciated. Thanks in advance!
edit: I'm using R9 by the way and I'm aware that I could also contact the author of this script. However, I'm not sure if he provides support for this, because he now sells a newer version of this script, which is obviously no longer freeware.
