[solved] How do you use project scripts in new project?

EDIT: this was not and issue, I just shouldn’t have suffixed my script with .py. A habit from other editors I guess.

As mentioned in this post, the new custom scripts are no longer reside under separate project.* and shared.* namespaces.

Now you can create them directly. But I wonder how you can use them from a button.

I’ve tried importing myScript, prefixing it with project., and using it directly like this:


But it always fails to find my function.


Huh, maybe we should discourage/disallow naming your scripts or modules anything that wouldn’t be a valid identifier (at least in the UI, can’t restrict what happens on disk).

1 Like