MCOMMAND_SPLIT [not work]

On 08/02/2013 at 10:11, xxxxxxxx wrote:

Hi 🙂
i have  this script for split polygon face:

 
import c4d
from c4d import utils
  
settings = c4d.BaseContainer()
res = utils.SendModelingCommand(command = c4d. **MCOMMAND_SPLIT** ,
                                list = [op],
                                mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,
                                bc = settings,
                                doc = doc)
c4d.EventAdd()

but not work... 
the new poygon is not created...  There is something that I entered wrong?

Thanks!

On 08/02/2013 at 10:58, xxxxxxxx wrote:

what could help :

create a copy both of your BaseDocument and your PolygonObject. Insert the poly copy into
the copy of the BaseDocument and pass these two to SMC. Then insert the result into your
active BaseDocment.

On 08/02/2013 at 11:07, xxxxxxxx wrote:

Try this:

import c4d
from c4d import utils
  
settings = c4d.BaseContainer()
res = utils.SendModelingCommand(command = c4d.MCOMMAND_SPLIT,
                                list = [op],
                                mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,
                                bc = settings,
                                doc = doc)
 **doc.InsertObject(res[0])**
c4d.EventAdd()

On 09/02/2013 at 01:57, xxxxxxxx wrote:

ferdinand and NiklasR, Thanks for your help 👍 🍺