How to update cloner mode

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.

On 03/11/2013 at 09:21, xxxxxxxx wrote:

Found that the attribute panel update on default startup layout but not on my scripting layout in cinema 4d r13.061

On 03/11/2013 at 09:24, xxxxxxxx wrote:

I finally figured it out : I needed a view panel added to my scripting layout to make it refreshed.

Resolved.