Hey Andrew, thanks for the reply, and sorry for the late reply.
So I am still not fully understanding what the render view is doing. Am I
going to have to use mel.eval to call renderViewRenderSelectedObj? Or can I
preform this in python?
Or is there a better way to render out the selected objet only by the cmds.
render('persp', x=300, y=300, abortMissingTexture=True)
Thanks!
On Friday, August 12, 2016 at 2:28:21 PM UTC-7, Andrew Hazelden wrote:
>
> 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/d9f2e7a6-e1bd-4914-b760-305da9d74ebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.