MEL vierport settings tickbox

MEL vierport settings tickbox

tntmeijs
Contributor Contributor
922 Views
2 Replies
Message 1 of 3

MEL vierport settings tickbox

tntmeijs
Contributor
Contributor

Hi there!

 

I'm working on a custom Maya viewport override and it's all working fine.

However, I'd like to add some custom settings to the viewport renderer. I noticed that Arnold and Viewport 2.0 both have a tickbox next to the override name. Clicking this tickbox will bring up a bunch of useful settings.

 

viewport_settings_checkbox.png

 

I'd like to implement something similar. How can I add this tickbox to my override tab? I can't seem to find the correct C++ (or MEL) command(s).

 

Many thanks!

 

- Tahar

0 Likes
923 Views
2 Replies
Replies (2)
Message 2 of 3

olarn
Advocate
Advocate

Dunno about the API but as a last resort you can find that panel yourself via MQtUtil, pyside and then add your own stylized button to the menuitem. 

 

http://help.autodesk.com/cloudhelp/2018/ENU/Maya-SDK/cpp_ref/class_m_ui_message.html#a7108d8024a910c...

Also maybe use this to do it automatically?

0 Likes
Message 3 of 3

tntmeijs
Contributor
Contributor

I see... Thanks for your help!

I'll give it a shot.

0 Likes