# When the Ignition vision client is updated, only then should the script be executed

**URL:** <https://forum.inductiveautomation.com/t/when-the-ignition-vision-client-is-updated-only-then-should-the-script-be-executed/69338>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [February 2, 2023, 1:09pm UTC](https://forum.inductiveautomation.com/t/when-the-ignition-vision-client-is-updated-only-then-should-the-script-be-executed/69338 "2023-02-02T13:09:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bala](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@bala](https://forum.inductiveautomation.com/u/bala)\
**Post date:** [February 2, 2023, 1:09pm UTC](https://forum.inductiveautomation.com/t/when-the-ignition-vision-client-is-updated-only-then-should-the-script-be-executed/69338/1 "2023-02-02T13:09:25Z")

</div>

I have a requirement in which when the vision client is updated, my client tag should be updated with a value of 1.

Please let me know if you have any ideas to fulfill the requirement of executing a script only when the Ignition vision client is updated.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 2, 2023, 1:23pm UTC](https://forum.inductiveautomation.com/t/when-the-ignition-vision-client-is-updated-only-then-should-the-script-be-executed/69338/2 "2023-02-02T13:23:04Z")

</div>

There's nothing that will do that. However, if you set project update mode to None, you can use scripting to perform a client update as described for [system.vision.updateProject()](https://docs.inductiveautomation.com/display/DOC81/system.vision.updateProject). Such a script would be able to perform whatever other special actions you want.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 2, 2023, 5:19pm UTC](https://forum.inductiveautomation.com/t/when-the-ignition-vision-client-is-updated-only-then-should-the-script-be-executed/69338/3 "2023-02-02T17:19:58Z")

</div>

The `ProjectUpdateAvailable` tag could be watched to know when an update is _pending_, but unless you script the actual update as Phil mentioned, you won't know when the update actually happened.  
[https://docs.inductiveautomation.com/display/DOC81/System+Tags#SystemTags-SystemClientTags(VisionOnly)](https://docs.inductiveautomation.com/display/DOC81/System+Tags#SystemTags-SystemClientTags(VisionOnly))
