Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography



Maxunderground news unavailable

rendering on different resolutions from different cameras on a scene (?)
show user profile  albongino
Hey guys, I'm working on a scene that has several cameras in it, right now resolution is set to 800x600, one of the cameras is covering a narrow space, so I don't need to render @ 800 pixels wide, say I want half the width,
is there a way to set a camera to switch resolutions without having to do it manually every time on the F10 menu? thanks in advance..



................



read 634 times
3/1/2010 8:37:36 AM (last edit: 3/1/2010 8:37:36 AM)
show user profile  Garp
I don't think you can directly. However some user defined properties and a short macro should do.

Define properties for each camera, like
render_w 400
render_h 300

Execute the following in a new script window and evaluate it
macroScript renderSizeFromCam
category:"Render"
internalCategory:"Render"
toolTip:"Render Size from Camera"
(
try (
renderWidth = getUserProp (getActiveCamera()) "render_w"
renderHeight = getUserProp (getActiveCamera()) "render_h"
) catch ()
render()
)

If the current view is a camera and if it has render_w and render_h properties, it uses them. Otherwise it renders with the current dimensions.

In the customize ui dialog, it's in the Render category under Render Size from Camera.




read 616 times
3/1/2010 12:57:47 PM (last edit: 3/1/2010 12:57:47 PM)
show user profile  JonathanH
Wouldn't Batch Render be perfect for this?

read 604 times
3/1/2010 3:12:19 PM (last edit: 3/1/2010 3:12:19 PM)
show user profile  Mashedpot8er
Hows about saving the render settings ? Its the little drop down at the very bottom of the render settings floater. You can save and load as you please. :) I use it for tests and finals usually.




Cad Monkey


read 595 times
3/1/2010 5:57:08 PM (last edit: 3/1/2010 5:57:08 PM)
show user profile  albongino
alright thanks,
garp, how do I define the camera property to (render_w) and (render_h)? well, bottom line is I'm fried when it comes to maxscript, but I could give it a try,

batch render seems to do it fine, also the save render settings at the bottom seems like a handy tool for that case, but I think cameras should have an override resolution option built in to avoid extra ticking, but I guess it's fine..
thanks again..
................



read 586 times
3/1/2010 9:43:34 PM (last edit: 3/1/2010 9:43:34 PM)
show user profile  Garp



Forgot to say, you have to do it with the render dialog closed. Otherwise it'll stick to the current values and apply the new dimensions to the next render (which is not that useful!)





read 575 times
3/1/2010 10:41:12 PM (last edit: 3/1/2010 10:41:12 PM)
show user profile  albongino
HA!! Genius!! thanks a lot!!
................



read 555 times
3/1/2010 11:55:46 PM (last edit: 3/1/2010 11:55:46 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org