Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    How to update cloner mode

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 282 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post