Property Panel Variables

Optuma Forums Optuma Scripting Property Panel Variables

This topic contains 3 replies, has 3 voices, and was last updated by Darren Darren 2 weeks, 4 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #54175
    Avatar
    Trevor R
    • Topics: 41
    • Replies: 128
    • Posts: 169

    Hi Guys,

    In a script I can define a variable as #$Var and “Var” will appear in the ShowBar/Plot/View Properties Panel to allow setting of the “Var” value for subsequent use in function or formula as “$Var”.

    However, I like to be able to give my variables meaningful names, eg “#$MaxTolerance” which will be displayed in the Properties Panel  as “#$MaxTolerance” but that is shown in the Properties Panel as “MaxTolerance”, but it would be better if it could be displayed in the Properties Panel as “Max Tolerance”, ie with the space between the words just as default properties are displayed.

    Is there a way to separately define the description in the Properties Panel, as distinct from the variable used within the script, say along the following lines:

    #$MaxTolerance = (5, “Max Tolerance, %”);

    Cheers

    Trevor

     

    #54177
    Matthew
    Matthew
    • Topics: 4
    • Replies: 172
    • Posts: 176

    Hi Trevor,

    There’s no way to add an override to the properties display text, it will always use the variables text in the panel.

    We ran a few quick tests here, using a space does seem to work, but be aware we have had some issues with spaces in the past so it maybe best to avoid them, however an underscore maybe a useful alternative.

    #54179
    Avatar
    Trevor R
    • Topics: 41
    • Replies: 128
    • Posts: 169

    Hi Matthew,

    Thanks for the quick response. I figured that what I was asking was not yet available – maybe one day?

    A follow on, why does the Script Manager display “Please enter a valid script…” with the following simple script:

    Cheers

    Trevor

     

    #54181
    Darren
    Darren
    • Topics: 38
    • Replies: 261
    • Posts: 299

    Hi Trevor,

    Bar variable notation (eg #$) can only be used for bar property values, eg the length of a moving average:

    More examples here:

    https://help.optuma.com/kb/faq.php?id=964

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close