The Maya Render View's "Render Selected Objects Only" menu item is defined 
and controlled in the following MEL file:
/Applications/Autodesk/maya2017/Maya.app/Contents/scripts/others/renderWindowPanel.mel

Besides the menuItem entry, there are two MEL other functions in this 
script that refer to this specific rendering feature which are "
*switchSelectObj()*" and "*refreshRenderMenu()*".

Both functions use MEL with an int based optionVar named 
"renderViewRenderSelectedObj" to turn this rendering mode on and off:
*optionVar -intValue renderViewRenderSelectedObj $var;*

Regards,
Andrew Hazelden

On Friday, 12 August 2016 17:25:35 UTC-3, I73 wrote:
>
> I am trying to render the selected object in the scene, unfortunately the 
> 'Render-> 'Render selected objects only' doesn't output to the script 
> editor so I can't follow the MEL example. 
> Is there anyone that has a working example or command I can use to get a 
> render by selected object?
>
> render = cmds.render('persp', x=300, y=300, abortMissingTexture=True)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/3eaed9a9-d8b3-4d31-8526-3b864adbfef6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to