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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    cloner don't refresh

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 738 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 26/05/2018 at 18:55, xxxxxxxx wrote:

      Ran into the same thing today. It looks like the cloner updates. If you click on something else in the OM and then click the clone again the panel updates. It would be nice if we could call for a refresh in the script.

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

        On 28/05/2018 at 01:56, xxxxxxxx wrote:

        This issue has been addressed with Cinema 4D R19. Since then you can send the needed MSG_DESCRIPTION_CHECKUPDATE via Python.
        So in a script changing the mode of a MoGraph cloner looks like so:Ö

            cloner[c4d.ID_MG_MOTIONGENERATOR_MODE] = 2  # set desired mode
            # send message MSG_DESCRIPTION_CHECKUPDATE for proper update
            msg = {}
            msg['doc'] = doc
            msg['drawflags'] = 0
            msg['descid'] = c4d.DescID(c4d.ID_MG_MOTIONGENERATOR_MODE)
            cloner.Message(c4d.MSG_DESCRIPTION_CHECKUPDATE, msg)
            c4d.EventAdd()
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 28/05/2018 at 10:35, xxxxxxxx wrote:

          cool! I'll give that a try. Thanks for the script.

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