Differences

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

Link to this comparison view

ardieffects:bindable [2018/04/16 06:35]
optrix created
ardieffects:bindable [2018/04/16 06:36] (current)
optrix
Line 4: Line 4:
  
 For example, you might assign the [[tint]] effect to an asset to change its colour and shade it in red. For example, you might assign the [[tint]] effect to an asset to change its colour and shade it in red.
- 
-But you don't want in red //all// the time - only when there'​s a fault, which is based on the **Faulted** digital property on your asset. 
- 
-To bind an attribute to a property, you use square braces ( [ and ] ) in the property value. 
  
 For example... For example...
Line 17: Line 13:
 The above effect makes the asset flash red every one second. It's always enabled, meaning that the asset will always flash. The above effect makes the asset flash red every one second. It's always enabled, meaning that the asset will always flash.
  
-But if we want this to be //conditional// on the 'faulted'​ propertywe can change it to the following...+But you don'​t ​want in red //all// the time - only when there's a faultwhich is based on the **Faulted** digital property on your asset. 
 + 
 +To bind an attribute to a property, you use square braces ( [ and ] ) in the property name.
  
 <​code>​ <​code>​
Line 25: Line 23:
 This means that the tint will only be active when the Faulted state is 1 (good). When the fault state goes to 0 (bad), then enabled will also go to 0, which will remove the tint.  This means that the tint will only be active when the Faulted state is 1 (good). When the fault state goes to 0 (bad), then enabled will also go to 0, which will remove the tint. 
  
-These aren't just limited to digitals - you can use analogues too. In fact, you can even transform your data. See [[binding ​attributes]] for details on possible expression formats.+These aren't just limited to digitals - you can use analogues too. In fact, you can even transform your data. See [[binding ​expressions|binding expressions]] for details on possible expression formats.