# Button and Object interaction

**URL:** <https://forum.inductiveautomation.com/t/button-and-object-interaction/7496>\
**Category:** Ignition\
**Created:** [October 30, 2013, 1:15pm UTC](https://forum.inductiveautomation.com/t/button-and-object-interaction/7496 "2013-10-30T13:15:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynnosler](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lynnosler](https://forum.inductiveautomation.com/u/lynnosler)\
**Post date:** [October 30, 2013, 1:15pm UTC](https://forum.inductiveautomation.com/t/button-and-object-interaction/7496/1 "2013-10-30T13:15:47Z")

</div>

I am creating my first project, and I am stuck on a concept.

I have an animated flame that I want to control with a button. When the user clicks on the button, I want the flame to go on or off.

Now, my brain says that this button should control the visibility of the graphic, however, doing research, I see that you cannot bind to the visibility property of an object.

So, how would I go about getting this to do what I want to do.

Using version 7.6.2 on Windows 7

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [October 30, 2013, 2:17pm UTC](https://forum.inductiveautomation.com/t/button-and-object-interaction/7496/2 "2013-10-30T14:17:38Z")

</div>

I understand.

Upgrade your Ignition. The ability to bind to the visible property was added in Ignition 7.6.3. It should work for most components in Ignition 7.6.3.

Nick

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [October 30, 2013, 3:24pm UTC](https://forum.inductiveautomation.com/t/button-and-object-interaction/7496/3 "2013-10-30T15:24:53Z")

</div>

Another way of doing this is with a Python script.

Something like the following in the actionPerformed event handler of the button that turns the flame on or off:

```auto
flame = event.source.parent.getComponent("Flame Component")
if flame.visible == True:
    flame.visible = False
else:
    flame.visible = True
```
