ScriptSpot

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)

If you want to have only one

Swordslayer · 2012-06-06

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.

thank you for good help

dussla · 2012-06-06

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

)

Swordslayer · 2012-06-07

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

perpeft work

dussla · 2012-06-07

really thank you for your effor
really really thank you

Swordslayer · 2012-06-07

My pleasure :)

barigazy · 2012-06-06

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

dussla · 2012-06-06

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

dussla · 2012-06-06

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 ?

barigazy · 2012-06-06

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?

i use 1 vbf only

dussla · 2012-06-06

like f9 result. i use 1 vbf only ~
at any way , really thank you for helping