# \[BUG?\] third party script function without vision client scope can't be imported in designer console

**URL:** <https://forum.inductiveautomation.com/t/bug-third-party-script-function-without-vision-client-scope-cant-be-imported-in-designer-console/45761>\
**Category:** Module Development\
**Tags:** ignition81, perspective\
**Created:** [April 19, 2021, 5:03pm UTC](https://forum.inductiveautomation.com/t/bug-third-party-script-function-without-vision-client-scope-cant-be-imported-in-designer-console/45761 "2021-04-19T17:03:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 19, 2021, 5:03pm UTC](https://forum.inductiveautomation.com/t/bug-third-party-script-function-without-vision-client-scope-cant-be-imported-in-designer-console/45761/1 "2021-04-19T17:03:01Z")

</div>

**Ignition 8.1.3**

When I add some script function in a module,  
if those script function are exposed for **gateway only scope** , I can use them in perspective view in the designer with no issue.  
Autocompletion is ok.

But in the **designer console** , only the script function with a vision client scope are exposed and can be used.  
Function with only a gateway scope can’t be used in this context : **error on import** and no autocompletion available.

It would be usefull to be able touse those kind of function from the designer console too !

---

<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:** [April 19, 2021, 5:06pm UTC](https://forum.inductiveautomation.com/t/bug-third-party-script-function-without-vision-client-scope-cant-be-imported-in-designer-console/45761/2 "2021-04-19T17:06:55Z")

</div>

Add them to Designer-scope then? There is a DesignerModuleHook.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 19, 2021, 5:23pm UTC](https://forum.inductiveautomation.com/t/bug-third-party-script-function-without-vision-client-scope-cant-be-imported-in-designer-console/45761/3 "2021-04-19T17:23:04Z")

</div>

It seems that script functions added in gateway module hook are automatically added in "perspective" designer area.

Script console must be the exception ?

Can be linked with:

> [@\[BUG\] Ignition 8.0.16-RC1 - script library have no autocompletion for functions from module which depends from perspective](http://forum.inductiveautomation.com/t/bug-ignition-8-0-16-rc1-script-library-have-no-autocompletion-for-functions-from-module-which-depends-from-perspective/37939/2):
>
> Yes, this is a bug. The script library always gives you scripting hints for the local scope. I filed a ticket a while back to add a selector, so you can choose (while in the scripting area) which scope’s autocompletion you want.

---

<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:** [April 19, 2021, 5:34pm UTC](https://forum.inductiveautomation.com/t/bug-third-party-script-function-without-vision-client-scope-cant-be-imported-in-designer-console/45761/4 "2021-04-19T17:34:03Z")

</div>

Yes, but the difference is that the script console never runs in gateway scope. Perspective always runs in gateway scope.
