View Full Version : [SCRIPT] SUBSETTER - easy subset rendering with mental ray...

11 November 2009, 10:33 AM
Hi guys. I'd like to share a nice script I made a while ago.
With this you can render single parts of your scene including final gather, which is a lot faster than turning all the other objects primary visibility off.
This is a production shader, so maybe you have to enable them first. (Didn't try without them enabled)

1. Source the script and start it with "Subsetter"
2. Press "create subset"
3. "Link Cameras"
4. "Create Label"
5. Select your objects (no groups!!!) and turn them "Visible"

You can use the "invisible" button to hide some parts you don't want to see anymore.
With "Select visible geo" you get all your renderable geometry selected.
"Unlink cameras" to turn subset rendering off in your scene. (The "Create Subset" button is grayed out if your scene has this node already)
For new geometry you have to press "Create Label" again. Unfortunately it resets all your geometry to be invisible, so for now it does not remember the visible parts after pushing this button.

Have fun! Request are welcome...

11 November 2009, 04:06 AM
This work really great.I try it without enable production shader,and don't have a problem.Thanks you for sharing this.Suspect,why it render faster than turn off primary visibility?

11 November 2009, 03:46 PM
Tha't a nice script, making things a lot easier. I will keep in touch when Ive tried it in production. I guess the requests will come up then :)

11 November 2009, 06:20 AM
Nice job!

I guess it's similar to creating a beauty contribution map, but without the pass system related issues.


01 January 2010, 03:00 PM
thanks a lot!! very helpful!

CGTalk Moderation
01 January 2010, 03:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.