If I wan't to import another python script(Test_script_1) and also run it through my python script(Test_Script_2)
Can this be done through init.py script ?
Can anyone tell me how to do that ?
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
Yes, of course this can be done. If you have an add-on with its folder and
__init__.py inside it, if you have other files like
file.py in the same folder you just import stuff from it like this:
from .file import Some_stuff
[Blender's installation folder]\[version]\scripts\addons\ and see how it's done with any of the add-ons in the folders there.