Hey, i’ve recently started trying to work with multiple files after finding my one long script was becoming too hard to edit. I understand that it requires one main file (init) to import all the other ‘modules’, but apart from that i feel kind of lost on how i should be designing a multi-file script. The information on the BlenderWiki seems out of date as that solution didn’t work for me, and the Python wiki felt rather confusing, and didn’t seem to have much relevant information that applied directly to scripting Blender Plugins - i’ve had to use something like this to have the plugin successfully load:
from .update import * from .user_interface import * from .set_data import * from .draw_stroke import * from .edit_data import * from .export_data import *
Using this, the UI loads and everything seems fine, but pretty much all the functions don’t work, as each module has lots of references to operators from other modules, or variables from init. Although I think the variables aren’t having any issues, despite including the above code format for importing modules into other modules, one module can’t find operators in another. How do other people structure their multi-file plugins?
(heres my current code in-case anyone wants to look at it - Download)