Render Batch Helper

7 votes
Version: 
1.46
Author Name: 
Obaida

This Script will Speed up the Process of Creating (Batch Renders) and (SceneState) for Specific Camera .

and Making (Lights RenderElements) and (Masks RenderElements) for (Selected Objects) and (All or Selected Lights) .

Works with V-Ray and Corona .

First Thing it Works on Selected Cameras from the List (not from the Scene)

- With V-Ray it will create Preset for Selected Cameras and Put the Preset File  in (Preset) Folder in the Same Directory of Max File , (With Corona No need for Presets) .

- Making Scene State for Selected Camera with (HIDDING ALL SELECTED OBJECTS) and (TURNING OFF ALL SELECTED LIGHTS)

(When Creating Scene State for Specified Camera the Script will Create another State Called "All" this will be Assigned to all other cameras)

- The Script Support (Camera Resolution Mod) modifier and it will Override the resolution if it applied to any camera

http://www.scriptspot.com/3ds-max/scripts/camera-resolution-mod

- Main Elements will Apply the Basic RenderElements , RightClick will Clear all Render Elements .

- Light Elements will Create Render Light Elements for SELECTED (Objects [with CoronaLightMtl] or Light) or All (if nothing is Selected) .

*in Case of V-Ray the Script will Create Light Elements based on LAYERS (so it can be saved with the Presets)

*in Case of Corona the Deference from Corona LightMix is the Script will Create ONE LIGHT ELEMENT for All Objects with Instance CoronaLightMtl .

- By Material and By Object will Create Alpha Mask for Selected (OBJECTS) or (OBJECT)  in case of (By Material) .

UPDATE 1.1 :

- The Script not Overriding the resolution when the Camera has (Camera Resolution Mod) modifier applied to it with CoronaRender .

UPDATE 1.2 :

- Add Option to Create Mask RenderElement for any SubMaterial when Selected Object Material is Multi/Sub-Object Fixed .

UPDATE 1.3 :

- Add Installer and Icons and Macroscript so the Script now can be put in the Toolbar .

- Add Clear All Elements Paths when RightClick on  Light Elements Button .

- Add Video to Explain the Workflow .

UPDATE 1.4 :

 

- Add 3 Options for Objects When Making Scene State .

UPDATE 1.41 :

- VRay AO render element was loading without texture now it loads with VrayDirt Map .

UPDATE 1.42 :

The Script Now at Start will Always ask for Saving Output Image and if Scape or Cancel Pressed the Script will Continue to Work . 

UPDATE 1.43 :

- Add more Options to SceneState , 

MAKING SCENESTATE WORKS IN 2 WAYS  :

1- NO Camera Selected in (Camera List) :

    - The parts that are saved to the State are AllParts

    -  SceneState called "All" will be created, and this State will be applied to all cameras in the scene that do not have a specific State .

    Note : When you repeat the previous process, a message will appear to replace the State "All" if it already exists.

2- Specific Camera Selected in (Camera List) :

    - The Parts Saved for the State are (1,3, 8, 9) and they are (Light Properties ,Object Properties, Materials, Environment)

     Here we have two cases:

     A : Nothing Selected in the Scene (Cntrl+D):

          In this case, you can make whatever changes you want in the scene (related to that 4 Parts) and when Saving the State these                 changes will be saved in a State Named as Camera Name

          Note: You must Uncheck (Hidden-Renderable-Visible) CheckBoxs in order to do this operation.

     B: There are Selected Objects or Lights in the Scene:

           In this case, the specified changes (Hidden-Renderable-Visible) are Applied to the selected objects and when Saving the                       state these changes will be saved in a State Named as Camera Name

            Note: One of these options (Hidden-Renderable-Visible) must be Checked in order to do this operation.

Sorry for the long explanation, but these things must be clarified and difficult to explain in a video.

VERY IMPORTANT NOTES :

When Starting the Script you should save FINAL Output Image (V-Ray) or CXR (Corona) at Least One TIme , or the Batch Render will Save Dameged Output Images (This Issue from Max itself not Related to the Script) . 

UPDATE 1.44 :

- Use this Version in case of "StringStream" Error Message. 

UPDATE 1.45 :

- Corona CXR Type Overwriting all athor output type , Fixed . 

UPDATE 1.46 :

- for VRay The Script can't Save Rendered Images Anymore (idk why !!) , So from Now on The Script will not Start if no Render Output (Corona) or Fram Buffer-(Separate Render Channels or Raw Image File) (VRay) , Already Saved . 

UPDATE 1.46f :

- Version in the Script Title was 1.45 Fixed , Now its 1.46

Video URL: 

Comments

Comment viewing options

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

I'm using corona I tested on

I'm using corona

I tested on two machines with different 3dsmax 2020 and it gave the same problem.

http://prntscr.com/s1gc5k

In 3dsMax 2017 this function

obaida's picture

UPDATE 1.43 :

- Add more Options to SceneState , Thanks to AmmarShow for Feedback's .

obaida's picture

i made it in max 2020 and i'm

i made it in max 2020 and i'm using it like everyday , its working fine
are you using V-Ray or Corona ?
any Error Message ?

boximage's picture

max 2020

very good script, would be very useful, does not work for 3ds max 2020, any forecast for update?

obaida's picture

UPDATE 1.42

The Script Now at Start will Always ask for Saving Output Image and if Scape or Cancel Pressed the Script will Continue to Work .

obaida's picture

UPDATE 1.41 :

- VRay AO render element was loading without texture now it loads with VrayDirt Map .

obaida's picture

UPDATE 1.4

@tahir1983 ,  your request is added to the New Update .

obaida's picture

Thanks

Glad you like it , for your request, i will try in the next update to add some options when making scene state .

tahir1983's picture

Thank you very much!

Remarkable tool for batch render organizing ! Additionally ... i think it will be better if in scene state option make objects invisible for camera (in this case objects can still trace shadows and remain visible in reflections) instead of hide them in scene ... or at least make choose option for this operations (hide or make invisible for camera)... thanks in advance!!!!

obaida's picture

UPDATE 1.3

The Script Updated to v1.3 and explaining video added .

Comment viewing options

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