Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Catch InputDialog Cancel?

    Cinema 4D SDK
    3
    3
    739
    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.
    • dskeithbuckD
      dskeithbuck
      last edited by

      Is it possible to tell whether or not a user has chosen [Cancel] in a gui.InputDialog(text, preset) if you specify the preset? Best I can tell, it will always return the preset.

      Here's a post from the old forum on the subject.

      It seems like it's a bug that the preset is returned when cancel is pressed.

      Perhaps a third (optional) variable could be added cancel="" which is what would be returned if the user cancels?
      Thanks,

      Donovan

      1 Reply Last reply Reply Quote 0
      • M
        mp5gosu
        last edited by

        No, still same old behaviour. 🙂
        I suggest you to implement such a dialog yourself, it's not that much effort and quickly pays off.

        1 Reply Last reply Reply Quote 1
        • M
          m_adam
          last edited by

          Hi Donovan, unfortunately, there is no change in this regards. The best way is still to check for an empty return value or either creates your own dialog.

          I've filled a feature request.
          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

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