Display the bevel widget by python or mel

#1

Hey,
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:
maya_2019-05-28_09-14-36

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.

Cheers!

#2

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
pm.runtime.BevelPolygon();
2 Likes