Facility Control

 View Only
  • 1.  How to change min. value of "range constraint" in ogScript

    Posted 02-04-2021 15:53

    Hi all,

    How can I change min. value of "range constraint" parameters in ogScript? I would like to have two buttons to switch range of values. 

    best

    Bartek



  • 2.  RE: How to change min. value of "range constraint" in ogScript

    Posted 02-04-2021 17:04

    Hi Bartosz,

    If you look at the example panels here: https://support.rossvideo.com/hc/en-us/community/posts/360065970252-Free-DashBoard-Example-Panels-for-Everyone

    You will find in the parameters subfolder a panel called "ReplacingConstraints".   There are examples in that panel on how to replace different types of constraints.

    For range constraints, you can do:

    var rConstraint = params.createIntRangeConstraint(1,10);
    params.replaceConstraint("rangeInt", rConstraint);

    The 1 is the minimum and the 10 is the max.   Just change those numbers to what you want.

     


    #DashBoard


  • 3.  RE: How to change min. value of "range constraint" in ogScript

    Posted 02-04-2021 17:38

    Thank You!!!


    #DashBoard