Batch rendering different objects in a scene

Maybe if someone know is it possible to make maxscript like this:

unhide object1
render it (VRay) with all render settings unchanged
save the image as object1.png
hide the object

unhide object2
render it (VRay) with all render settings unchanged
save the image as object2.png
hide the object

.
.
.

unhide objectN
render it (VRay) with all render settings unchanged
save the image as objectN.png
hide the object

is something like that possible to do in maxscript?

Comments

Comment viewing options

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

Batch rendering different objects in a scene

Hi,
Thank you very much for sharing this great script!
But what if the each object should be rendered by its own vray camera? Is it a complex task ? )

barigazy's picture

...

@AlexYu
You can add this tool in your workflow also
http://www.scriptspot.com/3ds-max/scripts/batch-render-wizard

barigazy

AlexYu's picture

batch-render-wizard

thanks a lot! i have it already, but i'm looking for a way to render without batch render via MFrender script. Create and name system states, give names for renders, etc. takes a lot of time if you have for an example 500 models to render. )

alek3tt's picture

Thank you, thank you, thank

Thank you, thank you, thank you :)

I really have to learn maxscript :)

br0t's picture

Hi, this should do the

Hi,
this should do the trick:

(
	--select all objects you want to render separately and execute the script
 
	local	outputPath = "C:\Users\YourName\Desktop" --change this path to where your renderings should be placed
	local fileExt = ".png" --change this to any image file type
 
	renderSceneDialog.close() --close render scene dialog to make changes have an effect
 
	for s in selection do s.isHidden = true --hide all selected objects
 
	for s in selection do --loop through selection
	(
		s.isHidden = false --unhide object
		rendSaveFile = true --make sure image is saved to disk
		rendOutputFileName = outputPath + "\\" + s.name + fileExt --create filename
		max quick render --render using the settings from the render scene dialog
		s.isHidden = true --hide object again
	)--end for
)

It will use the settings you set in the render scene dialog, no matter what renderer used.

Cheers

AttachmentSize
batchrenderobjects.ms 808 bytes

Never get low & slow & out of ideas

Comment viewing options

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