The bevel command is failling to apply the '-fillNgons' parameter. 'subdevide Ngons' attribute is set to off

I am trying to create a simple bevel “custom command” that I can call with a hotkey, as 90% of the time, I just need this type of bevel.

I have figured out most of it, the following gives me what I need:

polyBevel3 -offsetAsFraction 1 -fraction 0.1 -segments 2 -chamfer 0 -fillNgons 1 -mergeVertices 1 -mergeVertexTolerance 0.0001 -autoFit 1;

The only issue am having is that the fillNgons parameters value in the Chanell editor is shown as off, I need it to be on. The documentation states that fillNgons is a switch parameter, yet specifying 1 always results in a off value, as shown HERE

Am not sure where am going wrong here, is anyone familiar with this?

Am on Maya 2025

For the -subdivideNgons flag to work correctly for the polyBevel3 command, the -fillNgons flag must be missing from the command.
Not with a value of zero, but missing altogether)
You can easily verify this by running the command with the standard settings from the Edit Mesh menu.
You will see that the executed command will be displayed in the script editor.
You can notice that among the huge number of flags, the -fillNgons flag is missing, but the -subdivideNgons flag is present with a value of = 1.

In documentation:
polyBevel -subdivideNgons(-sn) Subdivide new faces with more than 4 edges
polyBevel3 -fillNgons(-fn) Subdivide new faces with more than 4 edges

In fact, the opposite is true (!!!)
This is correct:
polyBevel -fillNgons(-fn) Subdivide new faces with more than 4 edges
polyBevel3 -subdivideNgons(-sn) Subdivide new faces with more than 4 edges

At the same time, in ChannelBox, the attributes are displayed correctly:
Fill Ngons for node polyBevel2
Subdivide Ngons for node polyBevel3

But! In the Attribute Editor, both polyBevel2 and polyBevel3 have the same name for the parameter:
Subdivide Ngons
In the Attribute Editor, when you toggle the Subdivide Ngons checkbox in the polyBevel node, you can see the output in the script editor:
setAttr "polyBevel.fillNgons" 1;

In Tooltip Help/Quick Help:
For the polyBevel command - the flags are correct.
For the command polyBevel3 - a non-existent flag for this command was specified: Fill Ngons.

This situation with nodes/commands polyBevel/polyBevel3 has been observed since at least Maya 2019 )

And So It Goes )

N.B.
By the way, if you select code in the script editor and run it with Ctr+Enter, the selected code will be executed, but will not disappear, but will remain in the script editor.

1 Like

Ahh I see where I was going wrong now, there are several bevel commadns at work here, I completely overlooked that.

This was a very informative post, heled dispell a lot questions I had too. Thank you man!

Pretty neat, this makes the script editor tolerable! cheers!