# Using Perspective Scripts in Project Library

**URL:** <https://forum.inductiveautomation.com/t/using-perspective-scripts-in-project-library/28992>\
**Category:** Ignition\
**Created:** [October 10, 2019, 3:32pm UTC](https://forum.inductiveautomation.com/t/using-perspective-scripts-in-project-library/28992 "2019-10-10T15:32:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [October 10, 2019, 3:32pm UTC](https://forum.inductiveautomation.com/t/using-perspective-scripts-in-project-library/28992/1 "2019-10-10T15:32:22Z")

</div>

I am running 8.0.4. I noticed that when I create a project script in the project library and I use the ctrl+spacebar I do not see the system.perspective package. Is this on purpose or will this be added in a newer version? I tried making the call anyways and it does seem to work just fine.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 10, 2019, 3:36pm UTC](https://forum.inductiveautomation.com/t/using-perspective-scripts-in-project-library/28992/2 "2019-10-10T15:36:18Z")

</div>

Hmm. I’m guessing you don’t see those on purpose because a project script can be called from anywhere. Your scripts happen to work because you’re calling them from Perspective right now, but if any other part of the system called into these project scripts it would fail.

I’ll ask around though.

edit: do entries from other modules show up? `system.sfc` or `system.opcua` for example?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 10, 2019, 3:45pm UTC](https://forum.inductiveautomation.com/t/using-perspective-scripts-in-project-library/28992/3 "2019-10-10T15:45:06Z")

</div>

Okay, so far it seems that only scripting functions that can run from all the scopes will be available for autocomplete. Things that are gateway scope only `system.opcua`, `system.perspective`, etc… do not get registered.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [October 10, 2019, 3:59pm UTC](https://forum.inductiveautomation.com/t/using-perspective-scripts-in-project-library/28992/4 "2019-10-10T15:59:37Z")

</div>

Yes, that is correct I am running it from a button in perspective. Is this safe to do then? Is there something in my script that I should add to check for the scope somehow to determine how to handle it before the call to system.perspective?
