parvalue_​​description

Viewing 2 reply threads
  • Author
    Posts
    • #2356
      Bruce Walker
      Participant

      I found this command in the GDL reference guide, but can’t figure out what it does. There are no examples given, and the only other reference Google provided was a page in German that wouldn’t translate.

      Does anyone have an example of what this actually does? Thanks.

      www.brucepwalker.com
      https://www.mindmeister.com/65450406

      AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
      NVIDIA GeForce GTX 1060 8Mb

    • #2357
      Dominika Bobály
      Keymaster

      This function can be used to display the description text assigned to the actual value of any integer parameter with VALUES{2} list.
      It works on the interface, or for 2D/3D texts.
      For example, you have an object with the following parameter and values in paramscript:

      values{2} "iExampleParam" 1, 'Description Text 1',
      			2, 'Description Text 2'

      If you would like to display the description text of the selected value on the UI script, do this:

      stDescription = PARVALUE_DESCRIPTION ("iExampleParam")
      ui_outfield stDescription, 10, 10, 180, 15

      On the attached picture, the chosen value is 2, so the description text belongs to value 2.
      The command works in 2D and 3D as well.

      Dominika Bobály
      Product Manager
      GRAPHISOFT SE

    • #2359
      Bruce Walker
      Participant

      Excellent. Makes sense now. Thanks Dominika

      www.brucepwalker.com
      https://www.mindmeister.com/65450406

      AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
      NVIDIA GeForce GTX 1060 8Mb

Viewing 2 reply threads
  • The forum ‘Graphical UI and parameters list’ is closed to new topics and replies.