- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a file with a lot of different groups in it. Basically I want to individually render out each group. To do this manually would cost a lot of time so I would love to have a script that would hide all groups and then one by one unhide them, render the view and again hide the group. I hope this makes sense.
To do this I found a script online that more or less does exactly this. The problem is, is that it doesn't work with groups but with individual objects. It doesn't care about the groups and just hides and unhides every individual object in each group and renders them.
I tried to change the script to select all the group heads and hide/unhide but this does nothing to the children inside the group. How can I have Max select the group including it's children so that it hides/unhides the entire group?
This is the original script:
( --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 )
Any help would be greatly appreciated.
Solved! Go to Solution.