ScriptSpot

Script

Camera Resolution Mod

By BodyulCG · Credited author: Vladislav Bodyul · 2017-08-05

Version
1.10.1
Version requirement
3ds max 2010 - 2024
Date updated
2023-06-19
Votes
11
Download
Download
Description

Camera Resolution Mod is a modifier for 3ds Max which allows you to set the render resolution for each camera individually.

Additional Info

Changing the resolution will occur whenever you select a camera or change the viewport window to the camera.

Lite Version:

  • Storing custom presets not available.
Changelog:

v1.10.1

  • Added support for 3ds Max 2024.

v1.10

  • Added option "Move Time Slider".
  • Added renaming and updating of presets.
  • Fixed error "Attempt to access deleted modifier" when closing 3ds Max.

v1.07

  • Added buttons for dividing / multiplying resolutions by 2.
  • Added button "Swap WH".
  • Added checkbox "Transform Lock".

v1.04

  • Added option "Active Camera" in the update settings.
  • Fixed bug with the addition of presets in older versions of 3ds max.
  • Fixed bug where the resolution in the Render Setup window was not updated after changing the parameters or applying the preset.

v1.01

  • Fixed bug with resolution setting when the aspect ratio is on.

v1.0

  • First version.
Videos

Tags: render, modifier, camera, resolution, bodyulcg

Comments (26)

Overscan feature request

Visuali Studio · 2024-11-18

Hi Vladislav,
your script is great!

But please add "Overscan" functionality like it's described in this old article by Peter Guthire: http://www.peterguthrie.net/blog/2013/01/overscan
It would make the script even more useful!

Waseem3D · 2021-11-09

Is there any way I can copy all scene camera resolutions to batch render Automatically?

Batch Render

BodyulCG · 2021-11-09

Unfortunately no. The modifier does not work with Batch Render.

BodyulCG · 2020-12-20

The error "Attempt to access deleted modifier" is fixed in version 1.10.

it really gives error message on max closing

tahir1983 · 2020-12-16

Hello ! Unfortunatelly it really gives error message on max closing ..i use corona camera ...
MAXScript Callback script Exception
-- Runtime error: Attempt to access deleted modifier

IT SURELLY HAPPENS WHEN CLOSE SCENE FROM THE MODYFIER APPLIED CAMERA ...WHEN CLOSE SCENE NOT FROM CAMERA NO ERROR MESSAGES APPEAR!

DONT KNOW MAYBE THIS IS NOT SOLUTION BUT THE ERROR MESSAGE DISSAPEAR AFTER BLOCKING THIS STRING IN YOUR CODE

332 --callbacks.addScript #selectionSetChanged "crmUpdateOutputSize()" id:#CameraResolutionMod

Error on Max closing

Visuali Studio · 2020-08-20

I'm trying the last lite version but when I close 3ds this error appears

MAXScript Callback script Exception
-- Runtime error: Attempt to access deleted modifier

I've never seen it before and it pops up on closing only if the modifier was applied to a camera in the scene.
P.S. I'm using 3dsMax 2020 and Corona Cameras

BodyulCG · 2020-08-22

Please write, does this always happen? Did you test it on other cameras, for example Physical Camera?
If possible, duplicate your answer to 'contact (at) bodyulcg.com'

oops

obaida · 2020-02-26

My Macros was not Working Properly sorry for that , Now its Fixed .

- Drop the Mzp file to Viewport or run it from Scripting Menu , it will Remove the Old one Automatically .

- it will Show when you Select Camera and rightclick .

Attachments

.

BodyulCG · 2020-02-25

Thank you all!

@zrK
This is a 3ds max bug. Just try adding any other modifier like Attribute Holder and the 3ds max will freeze. Also very similar bug appeared in 3ds max 2020. If you turn on "Auto Vertical Tilt Correction" in the physical camera and add any modifier, 3ds max will also freezes. But this bug fixed in 2020.2.

About switching resolution, this is a limitation of 3ds max. Keep the render settings window closed.
Here in the beginning it is written about this: Render Setup Dialog

Yes that's right. If you select the camera with the modifier, the resolution from selected camera will be applied to the render settings in 3ds max, and this change will be displayed in all viewports.

issues

zrK · 2020-02-25

Hi, first of all, many thanks for your usefull script, it's very promising !
I'm facing some issues though, will you please plan to fix those ?
As cmjohncheng already stated, i have also the problem with lens shitft, stopping the vray rendering and freezing 3ds max then.
Besides that, i have a few issues where the resolution does'nt switch correctly, while the render settings windows is opened.
Selecting different cameras in other viewports changes the resolution / ratio of the camera viewport !

Regards,

titane357 · 2020-02-24

Thanks ! well done script, very usefull :-)

Thanks

obaida · 2020-02-26

its useful script but its little confusing if not applied to all Cameras ; so i made this small macros for applying the modifier to all cameras . *it will be add automatically to (Quad Menu 4)

website offline

fael097 · 2018-07-27

his website is offline, I wanted the full version. how to do so?

Batch render?

Ngariv · 2017-11-10

Thanks a lot for the mod. It works great for me, and I was looking forwards for something like it.
Would it be possible to make it compatible with batch render? When I make a batch render, all the cameras are rendered with the same resolution (the same than the last camera selected)
Thanks a lot again.

Precision Decimals

ibanksy · 2017-10-17

Hi, great script!

We're having a problem with the precision. After setting our resolution (6k) and locking the aspect ratio, every now and again the precision isn't accurate enough and the resolution ends up changing slightly when opening the file or changing between cameras.

Any chance this can be updated to include more digits after the image aspect decimal point?

Thanks

Iain
Recent Spaces

@ibanksy

BodyulCG · 2017-10-19

Fixed. Check please v1.01.

a bug?

cmjohncheng · 2017-10-04

using physical camera with lens shift(vray), when click render, it stop at "V-Ray starting rendering..." remove lens shift, it work fine.

@cmjohncheng

BodyulCG · 2017-10-19

Strange, it seems yes. I also have this bug. I'll try to fix it. Thank you for writing about this.

Background per camera

3dbybrunolopes · 2017-08-18

A nice addition to this could be adding a viewport background per camera. Really useful when doing photomontages

Yes yes yes !!

NicolasC · 2017-08-10

Very Nice, it's a long time wish !
I Guess it's compatible with VRay PhysCam ?
Thanks a lot for this modifier.

"I Guess it's compatible with VRay PhysCam ?"

BodyulCG · 2017-08-10

Yes, it should work with all types of cameras.

You rule, mate :)

NicolasC · 2017-08-11

Ok then it's a deal. Buying one lic at first to try at work next week. I'm curious to check how it behaves with some batch rendering solution (simple BatchRender for example), but this modifier will clearly help on daily work. If it works as expected, we'll take 2 more lics.
Thanks again.

cmjohncheng · 2017-08-17

tried, cant work with default max batch render.

Camera Correction

igamaximus · 2017-08-07

Does it work properly with Camera Correction modifier?

Camera Correction

BodyulCG · 2017-08-07

Should work fine.