render size fix

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Swordslayer's picture

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.

dussla's picture

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

)

Swordslayer's picture

Yeah, of course you can make

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
dussla's picture

perpeft work

really thank you for your effor
really really thank you

Swordslayer's picture

My pleasure :)

My pleasure :)

barigazy's picture

This is what you need to

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...

barigazy

dussla's picture

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

dussla's picture

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 ?

barigazy's picture

What about this

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?

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.