# Perspective: Script scopes

**URL:** <https://forum.inductiveautomation.com/t/perspective-script-scopes/24394>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 25, 2019, 3:49pm UTC](https://forum.inductiveautomation.com/t/perspective-script-scopes/24394 "2019-04-25T15:49:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattUlmer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mattulmer/32/8736_2.png) [@MattUlmer](https://forum.inductiveautomation.com/u/MattUlmer)\
**Post date:** [April 25, 2019, 3:49pm UTC](https://forum.inductiveautomation.com/t/perspective-script-scopes/24394/1 "2019-04-25T15:49:30Z")

</div>

How do I access scripts (let’s say a CommonUtils script) from within another project library script? In other scopes, such as events, using the name of the script and the function name (ie: CommonUtils.getFormattedPercent()) works just fine. It is only when I try and access a different script function from another project library script that I get this error, “NameError: global name ‘LoggerUtils’ is not defined at org.python.core.Py.NameError(Py.java:290)”

Unfortunately, the documentation for 8.0 is still referencing 7.9 project layouts (as of this writing), and there is no guidance in the Perspective specific help, that I could find:

[https://docs.inductiveautomation.com/display/DOC80/Project+and+Shared+Scripts](https://docs.inductiveautomation.com/display/DOC80/Project+and+Shared+Scripts)

I can provide code examples if needed.

Thank you.

---

<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:** [April 25, 2019, 3:54pm UTC](https://forum.inductiveautomation.com/t/perspective-script-scopes/24394/2 "2019-04-25T15:54:05Z")

</div>

If you’re not on 8.0.1RC or a nightly, this probably won’t work consistently, which could be whole root of the problem(s) you’re running into.

But, basically - instead of having to use `project.<name>` or `shared.<name>` you now just use whatever the package name is directly; your legacy stuff will upgrade and get placed into new packages called `project` and `shared` but that’s purely for upgrade - it’s not a strict requirement.

---

<div class="post-metadata">

**Author:** ![MattUlmer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mattulmer/32/8736_2.png) [@MattUlmer](https://forum.inductiveautomation.com/u/MattUlmer)\
**Post date:** [April 25, 2019, 4:15pm UTC](https://forum.inductiveautomation.com/t/perspective-script-scopes/24394/3 "2019-04-25T16:15:46Z")

</div>

This is a new project, so they are new script files. I suppose I will be upgrading then, which is probably better so that I get the fixed stuff 🙂

Thank you,

-Matt

---

<div class="post-metadata">

**Author:** ![MattUlmer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mattulmer/32/8736_2.png) [@MattUlmer](https://forum.inductiveautomation.com/u/MattUlmer)\
**Post date:** [April 25, 2019, 9:11pm UTC](https://forum.inductiveautomation.com/t/perspective-script-scopes/24394/4 "2019-04-25T21:11:04Z")

</div>

Just following up here. The upgrade to 8.0.1RC did the trick, yay!

-Matt
