Display the bevel widget by python or mel


I’m making a modelling toolbar for maya using python and I want to add some of the Maya tools in there. For example I’d like to have the bevel, but I’d like it to behave like when I press the bevel button in the Edit Mesh menu.

I want to make this window popup:

is there a way to use that or I will have to make my own window to control the amount of bevel?
I’m using pymel to build my toolbox btw.



After making a 150 lines of code class to handle it I found how to display this UI with one line… :sweat_smile:

Here’s the code if someones needs it in the future:

import pymel.core as pm