View Full Version : Rendering selected object Maya

11 November 2009, 11:49 AM
There is probably an obvious answer to this but,

How do you 'preview' render just your selected object? Say you may have ten obects in your scene but you only want to 'preview' render the object which is selected.

Is there a mel script out there that can do this or is there an easier way. I don't want to have to keep going into render stats and switching on and off the primary visibility.

11 November 2009, 03:30 PM
hi oliverhenry8,

I just put this together quickly and it should do the trick. Just place these scripts in your render options.

Pre render MEL:

InvertSelection; $selected = `ls -sl`; HideSelectedObjects;

Post render MEL:

select $selected;ShowSelectedObjects;InvertSelection;

11 November 2009, 04:03 PM
Thanks for the effort, works very well.
I did a bit of detective work and there is an option in the preview settings to switch on render only selected.

CGTalk Moderation
11 November 2009, 04:03 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.