User Tools

Site Tools


macros:function:programmer.editor.fixtures.setcontrolvaluebyid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:function:programmer.editor.fixtures.setcontrolvaluebyid [2017/11/26 15:50] icke_siegenmacros:function:programmer.editor.fixtures.setcontrolvaluebyid [2024/04/18 13:08] (current) – [Example in] gregory
Line 3: Line 3:
 ====== Programmer.Editor.Fixtures.SetControlValueById ====== ====== Programmer.Editor.Fixtures.SetControlValueById ======
  
-  Void Programmer.Editor.Fixtures.SetControlValueById(Int32 controlId, Int32 functionId, Single value, Boolean programmer, Boolean createRestorePoint)+  Void Programmer.Editor.Fixtures.SetControlValueById 
 +  ( 
 +    Int32 controlId, Int32 functionId, Single value, Boolean programmer, Boolean createRestorePoint 
 +  )
  
 ^ API | http://api.avolites.com/10.1/Programmer.Editor.Fixtures.SetControlValueById.html | ^ API | http://api.avolites.com/10.1/Programmer.Editor.Fixtures.SetControlValueById.html |
 ^ description | Sets the attribute current value of all currently selected fixtures. | ^ description | Sets the attribute current value of all currently selected fixtures. |
 ^ [[macros:namespace|namespace]] | [[macros:namespace:Programmer.Editor.Fixtures]] | ^ [[macros:namespace|namespace]] | [[macros:namespace:Programmer.Editor.Fixtures]] |
-^ parameter | controlId ( [[macros:type:int32]] ) : id of the attribute to set |+^ parameter | controlId ( [[macros:type:int32]] ) : id of the attribute to set, see [[macros:identifier:fixturecontrolid|]] |
 ^ ::: | functionId ( [[macros:type:int32]] ) : id of the attribute function to set | ^ ::: | functionId ( [[macros:type:int32]] ) : id of the attribute function to set |
 ^ ::: | value ( [[macros:type:single]] ) : the value to set the attribute to | ^ ::: | value ( [[macros:type:single]] ) : the value to set the attribute to |
Line 29: Line 32:
  
 This should set the currently selected fixtures to 50% dimmer level, put this in the programmer and create a restore point: This should set the currently selected fixtures to 50% dimmer level, put this in the programmer and create a restore point:
-  * 16 refers to 0x10 which is the hex FixtureControlId of the [[:personality:attribute id|attribute ID]] for the dimmer+  * 16 refers to 0x10 which is the hex [[:macros:identifier:FixtureControlId]] of the [[:personality:attribute id|attribute ID]] for the dimmer
   * 1 is the - assumed - function ID for the [[personality:attribute function|attribute function]] 'Dimmer'   * 1 is the - assumed - function ID for the [[personality:attribute function|attribute function]] 'Dimmer'
   * 0.5 is 50%   * 0.5 is 50%
   * true (the first) puts this into the programmer   * true (the first) puts this into the programmer
   * true (the second) creates a restore point   * true (the second) creates a restore point
 +
 +See also [[:macros:function:Programmer.Editor.Fixtures.SetControlValueByName]] which takes the name of the attribute and function instead of requiring the ID numbers.
  
 == Also used in == == Also used in ==
macros/function/programmer.editor.fixtures.setcontrolvaluebyid.1511711455.txt.gz · Last modified: 2017/11/26 15:50 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki