On 02/11/2013 at 14:12, xxxxxxxx wrote:
Hi,
with the code below, the cloner mode (combobox) is updated to Grid Array but other elements still refer to linear mode.
Please, how to show the Grid Array options?
mydoc = c4d.documents.GetActiveDocument()
myobj = c4d.BaseObject(1018544)
myobj.SetName("MyCloner")
bc= myobj.GetDataInstance()
bc.SetLong(2010, 3)
mgGridSize = c4d.Vector(500, 500,500)
bc.SetVector(1201, mgGridSize)
mydoc.InsertObject(myobj)
mycube = c4d.BaseObject(c4d.Ocube)
mycube[c4d.PRIM_CUBE_LEN]=c4d.Vector(150, 150, 150)
mydoc.InsertObject(mycube)
mycube.InsertUnder(myobj)
c4d.EventAdd()
Thank you.