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

    MessageDialog in SetName() bug

    Scheduled Pinned Locked Moved Bugs
    4 Posts 0 Posters 839 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 13/04/2015 at 09:23, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:   Windows  ;   
      Language(s) :

      ---------
      When I open up a MessageDialog in TreeViewFunctions.SetName(), the function will be called one more time with the same parameters. Tested in R14 and R16 in Python, I guess its the same in C++.

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

        On 14/04/2015 at 06:28, xxxxxxxx wrote:

        Hi Niklas,

        I'm not sure I understand the actual problem correctly.
        Can you provide me with some code, demonstrating the issue?

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

          On 14/04/2015 at 07:03, xxxxxxxx wrote:

          Hi Andreas,

          sorry I currently don't have the time to set up a complete example. If you have access to a plugin
          that uses a Tree View and implements a TreeViewFunctions subclass, try calling MessageDialog()
          inside its SetName() method. You will see that when you rename an element in the TreeView and
          the dialog pops up, it will pop up just another time because SetName() is called again.

          SetName() will be called only once (as expected) if you don't call MessageDialog() inside of it.

          Best,
          Niklas

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

            On 14/04/2015 at 07:25, xxxxxxxx wrote:

            Hi,

            I only had a C++ plugin to test with, but I can confirm the described behavior.
            We'll need to look into this. Thanks for pointing this out.

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