How to set options for SendModelingCommand?

On 25/07/2015 at 05:08, xxxxxxxx wrote:

How can I send options for SendModellingCommand?
As far as I can understand from the documentation I need to send the options through a bc, but I'm not sure how.

c4d.utils.SendModelingCommand(c4d.MCOMMAND_SUBDIVIDE,[polyobj],c4d.MODIFY_ALL,c4d.BaseContainer)

#errors
?

On 25/07/2015 at 12:28, xxxxxxxx wrote:

Just create a BaseContainer and set the options that are provided in the SDK. Some options are not documented in the SDK but the SDK points out the header file (some_name.h) that contains the relevant parameters.
So, here is an example of how to use the Untriangulate command:

bc=c4d.BaseContainer()
bc.SetBool(c4d.MDATA_UNTRIANGULATE_ANGLE,True)
bc.SetReal(c4d.MDATA_UNTRIANGULATE_ANGLE_RAD,angle);
bc.SetBool(c4d.MDATA_UNTRIANGULATE_NGONS,False)

result=utils.SendModelingCommand(command=c4d.MCOMMAND_UNTRIANGULATE,list=[op],mode=c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,bc=bc,doc=doc)

On 31/07/2015 at 10:30, xxxxxxxx wrote:

Hello utisz,

was your question answered?

Best wishes,
Sebastian