ScriptSpot home

Forum topic · Scripts Wanted

render size fix

By dussla · 2012-06-06

Description

there is 3 problem

1. if i render scene

i use render outputsize;[1600 1200] command

but render dialog window did not changed that value

2.if i render scene

i use render outputsize;[1600 1200] command

new window is made

that is some complex in my monitor

3. i would like to fix render position in my lcd monitor
but if i render scene , render window is center

is possible that fix ?

Comments (11)
Vojtech Cada

If you want to have only one

If you want to use only one VFB all the time, you have to have a variable refering to a single bitmap that all the separate scripts would have and access to. Like this:

my_vfb = bitmap 1 1 -- that's the variable
render outputSize:[1600, 1200] to:my_vfb
render outputSize:[2400, 1800] to:my_vfb

Note that the position of the window is measured as a position of its upper left corner so depending on the preset sizes it might not work quite as expected.

Reply to Vojtech Cada
dussla

thank you for good help

thank you
i wonder
my_vfb = bitmap 1 1 -- that's the variable

can i make that grobal variable ?

i made 2 button , result is 2 render window~

on low pressed do
(
my_vfb = bitmap 1 1 -- that's the variable
render outputSize:[1600, 1200] to:my_vfb

)

on high pressed do
(
my_vfb = bitmap 1 1 -- that's the variable
render outputSize:[2400, 1800] to:my_vfb

)

Reply to dussla
Vojtech Cada

Yeah, of course you can make it a global variable, but that's only necessary if the low and high event handlers are parts of different scripts. If they both have an access to the same locals, e.g. if they are both used in the same rollout, just make it local to that rollout:

try destroyDialog ::renderPresetDialog catch()
rollout renderPresetDialog "Render Presets"
(
	local my_vfb = bitmap 1 1

	button low "Low"
	button high "High"

	on low pressed do
		render outputSize:[1600, 1200] to:my_vfb

	on high pressed do
		render outputSize:[2400, 1800] to:my_vfb
)
createDialog renderPresetDialog
Branko Živković

This is what you need to do


render outputSize:[1600,1200] vfb:true pos:#vfb_center


For position you can use:

#vfb_upper_left
#vfb_lower_left
#vfb_upper_right
#vfb_lower_right
#vfb_center
#vfb_renderer_position
#vfb_vprimary_position
#vfb_vsecondary_position

If you want to use camera then:


render camera:$Camera001 outputSize:[1600,1200] vfb:true pos:#vfb_center


etc.
Read this topic from mxs help
http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/index.html?url=fil…

new window is re made when i render

i would like to use 1 window for rendering
like quick render

example}
i made many preset

render outputSize:[1600,1200]
render outputSize:[3600,1200]
render outputSize:[4600,1200]

when i use that script , each vfb is made
i use 1 vfb only

i use 1 camera only

i use only 1 camera
for test rendering , i render many time

so i have to use 1 vfb window

i wonder

i put f9 button , renderer use 1 window.
but when i use script ( render last outputsize : [ ] ) . vfb window is made again

what problem ?

Reply to dussla
Branko Živković

What about this:


outsize = #([160,120], [360,120], [460,120])
for i = 1 to outsize.count do (render camera:$Camera001 outputSize:outsize[i])


Are you need 1 vfb window or 3?