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

    Dialog update realtime

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 606 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 16/08/2017 at 23:26, xxxxxxxx wrote:

      Ciao!
      I would like to develop a dialog windows with some EditText precompilated automatically when other EditText is compilated.
      For example:

      Dialog windows with 2 EditText:

      1. Input Rise Height
      2. Input Thread depht

      When user insert a Rise Height value, automatically in Thread field appear a value (that user can modify).

      Thanks!! 🙂

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

        On 16/08/2017 at 23:48, xxxxxxxx wrote:

        You may want to use the Command() function of class GeDialog.
        https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d.gui/GeDialog/index.html#c4d.gui.GeDialog

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

          On 17/08/2017 at 02:28, xxxxxxxx wrote:

          mp5gosu already provided a good hint, in Command() you are free to set dependencies between different data or widgets, i.E. changing b as well, when user interacted with a.

          Maybe you also want to take a look at the GeDialog manual in our C++ documentation.

          But the more important question for me is, it seems as if you are using a string input (EditText) in order to get numerical values? Is there a specific reason (please forgive, I didn't take a look at the plugin, yet) to do so? Wouldn't a numerical input (AddEditNumber(), AddEditNumberArrows()) or slider (AddSlider(), AddEditSlider()) be the more logical choice?

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

            On 17/08/2017 at 07:09, xxxxxxxx wrote:

            Thanks guys!👏
            ...and yes, Andreas..you are right! I have used string input by mistake Confused (with 4 useless lines of code for manage input format 🤢...I need vacation!)

            This is the new version (Beta 0.85) of SCALAX plugin with your tips.
            https://www.dropbox.com/s/53q0o0bgdz6ex95/ScalaX_v085.zip?dl=0

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