# Check for binding on perspective component

**URL:** <https://forum.inductiveautomation.com/t/check-for-binding-on-perspective-component/36875>\
**Category:** Ignition\
**Tags:** ignition80, scripting, perspective\
**Created:** [July 20, 2020, 6:19pm UTC](https://forum.inductiveautomation.com/t/check-for-binding-on-perspective-component/36875 "2020-07-20T18:19:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon.hughes1](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@brandon.hughes1](https://forum.inductiveautomation.com/u/brandon.hughes1)\
**Post date:** [July 20, 2020, 6:19pm UTC](https://forum.inductiveautomation.com/t/check-for-binding-on-perspective-component/36875/1 "2020-07-20T18:19:36Z")

</div>

Is there a way to tell if a component property has a binding assigned to it within a python script? My goal is to iterate through all the components in a view, and refresh the visibility property binding through a property change script. I’ve got it working, but I’m getting errors when it iterates over components that do not have a binding assigned to their visibility property.

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [July 20, 2020, 7:41pm UTC](https://forum.inductiveautomation.com/t/check-for-binding-on-perspective-component/36875/2 "2020-07-20T19:41:54Z")

</div>

call self.refreshBinding(“meta.visible”) if it throws an exception. It doesn’t have one?

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [July 20, 2020, 7:51pm UTC](https://forum.inductiveautomation.com/t/check-for-binding-on-perspective-component/36875/3 "2020-07-20T19:51:09Z")

</div>

the iterate around it with try, except, finally

---

<div class="post-metadata">

**Author:** ![brandon.hughes1](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@brandon.hughes1](https://forum.inductiveautomation.com/u/brandon.hughes1)\
**Post date:** [July 20, 2020, 8:06pm UTC](https://forum.inductiveautomation.com/t/check-for-binding-on-perspective-component/36875/4 "2020-07-20T20:06:28Z")

</div>

Didn’t even cross my mind to use try/except… That works nicely! Thanks for the help!
