Dialog update realtime

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!! 🙂

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

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?

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

Thanks guys!👏
...and yes, Andreas..you are right! I have used string input by mistake  (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