# Access Multiple Scripting Library Variables from Script

**URL:** <https://forum.inductiveautomation.com/t/access-multiple-scripting-library-variables-from-script/96063>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [September 17, 2024, 2:15pm UTC](https://forum.inductiveautomation.com/t/access-multiple-scripting-library-variables-from-script/96063 "2024-09-17T14:15:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 17, 2024, 2:15pm UTC](https://forum.inductiveautomation.com/t/access-multiple-scripting-library-variables-from-script/96063/1 "2024-09-17T14:15:10Z")

</div>

I have more than 10 different string variables defined in a scripting project library. Of course, I can access them individually via `library.varName`, but if I'm access 10 of them within the same script that gets annoying.

Is there a way to declare that the script should look in that library for variables as well?

I know this is really a general Python question, but not quite sure how to Google this one.

---

<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:** [September 17, 2024, 2:29pm UTC](https://forum.inductiveautomation.com/t/access-multiple-scripting-library-variables-from-script/96063/2 "2024-09-17T14:29:51Z")

</div>

Technically, yes, you could do something silly like pack them into a dictionary and then unpack that dictionary into locals(), probably...

But I wouldn't. Explicit \> implicit, even if it means some extra typing in the short term.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 17, 2024, 2:33pm UTC](https://forum.inductiveautomation.com/t/access-multiple-scripting-library-variables-from-script/96063/3 "2024-09-17T14:33:58Z")

</div>

Well, since I'm using these constants to unpack values from a dictionary already I think that would be extremely silly 😅 at least there's copy/paste
