On 16/01/2013 at 14:20, xxxxxxxx wrote:
Bonjour tout la monde,
I found this post (over in the C arena), among others, on using the knife tool with smc, and I've spent a lot of time trying to figure it out in general with no joy. I find myself asking, "Is it even possible?"
Here's the simple bit I've been trying:
data = c4d.BaseContainer()
data.SetLong(1100, 3) ##Set mode to Plane
data.SetBool(1115, 1) ##Set to Slice, for now, so I can figure out one thing at a time
data.SetLong(1107, 2) ##Set plane to XZ
objList = 
objList.append(doc.GetFirstObject()) ##Temporary cube for testing
c4d.utils.SendModelingCommand(244, objList, 0, data, doc, c4d.MODELINGCOMMANDFLAGS_CREATEUNDO) ##244 = c4d.MCOMMAND_KNIFE
No errors, just... nothing happens. Anyone know how to/have ever successfully cut anything in any way whatsoever? Really appreciate the help.