On 05/11/2015 at 02:50, xxxxxxxx wrote:
In R14 this piece of code to make an object a polygon object before inserting it in the document works:
[ B_cyl = c4d.BaseObject(c4d.Ocylinder)
B_cyl[c4d.PRIM_CYLINDER_CAPS] = False
B_cyl[c4d.PRIM_CYLINDER_RADIUS] = 50
B_cyl[c4d.PRIM_CYLINDER_HEIGHT] = 50
B_cyl[c4d.PRIM_CYLINDER_HSUB] = 3
B_cyl[c4d.PRIM_CYLINDER_SEG] = 36
B_cyl[c4d.PRIM_AXIS] = 2
B_cyl_to_obj = c4d.utils.SendModelingCommand(c4d.MCOMMAND_CURRENTSTATETOOBJECT,
doc = doc,
list = [B_cyl])
B_cyl_obj = B_cyl_to_obj[0]
B_cyl_obj_pnts = B_cyl_obj.GetAllPoints()
B_cyl_obj.InsertUnder(obj_null)]
But in R12 and R13 it does not. Is there a workaround for this????