Материал из Module developer
module.AddRelation
Create a connection between properties. Properties that can be parts of connection: graphic item properties, token values, values of driver feedback channels
Синтаксис
module.AddRelation(LHSName, RHSName)
| Название | Пример | Описание |
| LHSName | "Drivers.HDL-BUS Pro Network (UDP).HDL-MC48IPDMX.231:channel" | type: string Full path to the first property |
| RHSName | "UI.Dimmer.Level.Value" | type: string Full path to the second property |
| На выходе |
| Boolean | true | type: Boolean Result of connection creation |
Пример
module.AddRelation("Drivers.HDL-BUS Pro Network (UDP).HDL-MC48IPDMX.231:channel", "UI.Dimmer.Level.Value"); // creates relation between the feedback and the value of dimmer
You can learn the full way to the property with the help of Relations in the studio.
