# Is it possible to access window components from the project library scripts?

**URL:** <https://forum.inductiveautomation.com/t/is-it-possible-to-access-window-components-from-the-project-library-scripts/66781>\
**Category:** Ignition\
**Created:** [November 21, 2022, 9:36pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-access-window-components-from-the-project-library-scripts/66781 "2022-11-21T21:36:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [November 22, 2022, 1:04am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-access-window-components-from-the-project-library-scripts/66781/6 "2022-11-22T01:04:04Z")

</div>

> [@nminchin](#):
>
> in a Vision Client Tag

Not necessary. A Vision Client Tag Change **Event** would suffice.

> [@rahman.tarek](#):
>
> a tag change event is calling

You don't. Or more precisely, not from gateway scope.

You write your script to run in some client scope, Vision or Perspective. See this related discussion:

> [@Automatic Function](https://forum.inductiveautomation.com/t/automatic-function/66619/16):
>
> Aside from the style customizer, which is a Vision thing, the key to the question is to use an expression binding to translate your tag values into a range of colors or indices for colors. Whether Vision or Perspective. I highly recommend you bind the source tag to a custom property (perhaps indirectly), and then use that property in your expressions or styling. Note that one "pulls" the tag into the UI for evaluation--you don't "push" from the tag to the UI. That is, don't try to do this so…

Note especially how your UI should _ **pull** _ the data it needs from global resources, including tags, not have those resources try to _ **push** _ to the UI.

---

_[View the full topic](https://forum.inductiveautomation.com/t/is-it-possible-to-access-window-components-from-the-project-library-scripts/66781)._
