This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

hide/unhide slidebars
#1
Hello
I need to have a set of objects corresponding to virtual group addresses
Each object has to make a slide bar appearing on the screen so the user can select which light to dim and not to overload the visualization appearance with tens of slidebars . By pressing an object, all the other objects must be written with zero value (in order to show deselected mode) and all the slide bars must disappear except the intended one. Obviously I don't want to trigger an event from each individual address (thus writing hundreds  of scripts)

I have managed to control all the slidebars appearance from a single group address by using
.addClass("hide") and  .removeClass("hide") but only when i trigger an event from every individual virtual address. Also, I cannot manipulate a tag list from Java so I am doing it from a LUA script.
grp.tag('TAG_NAME'):update(event.getvalue())


Also, Is there any Java startup script to ensure that all the virtual objects are written with 0 and all the sliders are hidden at startup?
I can write 0 values with a LUA startup script but I cannot make the sliders to disappear
I can make the slidebars disappear and write 0 to all the virtual objects with JavaScript but cannot find a way to do it at start up although I have found a way to do it after the first selection of something (No matter what)


Thanks
Reply


Messages In This Thread
hide/unhide slidebars - by ncgnick - 28.05.2019, 12:40
RE: hide/unhide slidebars - by admin - 28.05.2019, 12:47

Forum Jump: