RenderOutPutSize


#1

hi
my brilliant scripting skills are fading when the listner doesn’t display the appropriate output
:sad:

and i always stuck with these stuff and get lost with the help files , its because i try to make my very simple scripts only when i need to

now , all i wanted to do is a very simple thing , just make a presets for render size " 320X240 and 600X800 … and may be other 2 res " but i wanted that to function with every renderer
i choose in the render scene dialog

… i didn’t reach that stage of assuring that every render i choose will work , but instead i’m stuck at the output size … how to call different sizes of the render through max script ?
and what is " bitmap : " output means ?


render max vpt outputsize [600 , 800 ]
 


whenever i change the outputsize … it defaults to the selected size in the render scene–> outputsize

BTW …i’m on max 8

thanks


#2

Do you want to RENDER, or to just change the values in the Render Scene Dialog?
Because what you have written looks like calling the render() method which actually fires the current renderer.
You are missing the colon : between the parameter and the value, in other words,

render outputsize:[300,300] 

will render a bitmap of that size.

If you want to change the values in the Render Scene Dialog, they are exposed via two global variables:

RenderWidth=300
RenderHeight=300

You can change values in the dialog only with the dialog closed (otherwise changes would be ignorred), so you would have to say


 oldState = renderSceneDialog.isOpen() --see if dialog is open
 if oldState do renderSceneDialog.Close() --if it is, close it
 RenderWidth=300 --change the settings
  RenderHeight=300
 if oldState do renderSceneDialog.Open() --if it was open, open it again.


#3

thanks bobo … you’re the boss

stupid me , the colon !


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.