SOLVED Welding point for a polygon

C4D has a command which allows to weld points of a mesh.
I would like to make a script in python which would allow me to weld very close points.
How can I call this command with python ?

Hi Kantronin, thanks for reaching out us and welcome to PluginCafé.

To make Cinema 4D programatically executing modeling commands, you can make use of SendModelingCommand which properly satisfy your scope.
Aside from the example shown in the documentation you can also have a look at this post from @maxime and this other post about Optimize command.
Last but not least be aware that the modeling command settings are specified in the BaseContainer passed to the SendModelingCommand and whose parameters can be found in the MCOMMAND page.

Finally please remind to use Tags and Ask as a question for any future support entries