0
Answered

Press a button and image slides out

Mantas Jasiulis 6 years ago updated by Aleksandr Romanov (CTO) 5 years ago 2

Hello everybody,


I'm trying to make a button in my Iridium project (blinds/shutters) that when you press on it, an image of blinds in the home plan (autocad drawing inserted in iridium) slides from one side of the window to the other side and the ammount is proportional to the blind position feedback in %. Maybe someone could share ideas how to make it?


Thank you.

GOOD, I'M SATISFIED
Satisfaction mark by Mantas Jasiulis 5 years ago
+1

Hello.

There is a simple way and a complex way.


Simple: use Level.
Create a Item, select the Level type. Upload your image to OBJECT PROPERTIES (States tab). In Properties, you can select a color that matches the background for one of the States. Then drag the channel and the feedback for your curtain onto this Item.


Complex: use Javascript.
You need to calculate the coordinates of the movement, and then transfer them to the channel. From the feedback to take the values and in accordance with them to position the image. However, it will take more time to implement it.