Материал из Module developer
Перейти к: навигация, поиск

For example, there is a module for the light controller (dimmer), which can be connected to 4 work light groups at most. In this case it is adviable to add 4 SubDevices with the help of the editor. But in case of a module for the DMX controller (controller for controlling lights which can change their color), to which you can connect up to 512 work groups, creation of SubDevices with the help of the editor is not the best solution. Firstly adding 512 SubDevices will take o long time. Secondly, displaying512 wigets at a time is unnecessary, as many of them are unlikely to be used. In this case it is advisable to write a script which creates the required number of SubDevices.