On 26/12/2017 at 06:19, xxxxxxxx wrote:
I tried to remove Ngons of a polygonal object but this script has no influence over the geometry.
1. import c4d
2.
3. def main() :
4.
5. op.GetPolygonS().SelectAll(op.GetPolygonCount())
6. res = c4d.utils.SendModelingCommand(command = c4d.ID_NGON_REMOVE_MENU,
7. list = [op],
8. mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,
9. doc = doc)
10. c4d.EventAdd()
11. if __name__=='__main__':
12. main()
Sometimes I'm getting this error: A problem with this project has been detected: Object "Plane" - Polygon selection out of bounds. Please save and contact MAXON Support with a description of the last used commands, actions or plugins.