Hi! Thank you for reply!
Currently i'm using almoust the same as you written, 
but with python and cmds: cmds.modelEditor() command with proper flags.

I was intrested how to do the same operation with Python API

среда, 25 августа 2021 г. в 06:55:46 UTC+3, wwn150...@gmail.com: 

> you could use mel function 
>
> setRendererInModelPanel $gViewport2  your_model_panel   # viewport 2.0
>
> setRendererInModelPanel $gLegacyViewport  your_model_panel  ;  # viewport 
> 1.0
>
>
>
>
>
> 在2021年8月23日星期一 UTC+8 下午5:26:25<golu...@gmail.com> 写道:
>
>> Hello everyone!
>>
>> Stuck with some problem, using maya 2017, and i need to change viewport 
>> rendere to viewport 2.0, how can i do this with Python API?
>> Cannot find such option in documentation,
>> what i founded i can check what RendererName 
>> <https://help.autodesk.com/cloudhelp/2017/ENU/Maya-SDK/cpp_ref/class_m3d_view.html#a5e6d2851c6b3057c33a11e60bfe978ee>
>>  currently 
>> used as enum parameter of
>> M3dView  object of current viewport with getRendererName(), but there is 
>> no setRenderer , and i cannot change param directly without setter.
>>
>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/fca8870f-e97d-4561-b9cb-ebaf70f9191en%40googlegroups.com.

Reply via email to