Can we remove N-gons ?
-
On 30/06/2013 at 15:51, xxxxxxxx wrote:
Hello,
I am trying to remove N-gons, but the only command I found is ID_NGON_REMOVE_MENU who don't seems to work :
import c4d def main() : print c4d.utils.SendModelingCommand(command = c4d.ID_NGON_REMOVE_MENU, list = [op], mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION, doc = doc) if __name__=='__main__': main()
The function return False, so I guess there is a problem somewhere... By the way all the « modeling library menu commands » return False. Is there something I am doing wrong ?
-
On 01/07/2013 at 04:18, xxxxxxxx wrote:
I've never used SendModelingCommand in Python, but I'm pretty sure you're using the wrong ID. That ID looks like one you would use with CallCommand() - which is very different from SendModelingCommand.
CallCommand() might be all you need but if not then you'll need to look through all the IDs in SendModelingCommand and see if there's one there that will do it.
Edit: Sorry, I'm quite wrong of course. That's a perfectly valid command but I'm not sure why it doesn't work. Hm.
-
On 01/07/2013 at 12:53, xxxxxxxx wrote:
first of all smc is quite buggy and should be avoided if possible. unfortunately there is no other way to interact with ngons in python. one thing that sometimes does help is performing the command on a cloned document.