I'm writing a plugin that imports, processes and exports 3d files (whatever cinema4d supports). It has two way of working:
- using parameter -scene, it checks merges all the top level objects and check if there are duplicates, and then checks if the object is already stored in a database
- using parameter -object, it just merges everything in the scene (removing cameras lamps etc) and then exports the object
I wanted to keep the code in modules, storing the first part in a scene_exporter.py and the second one in object_exporter.py and here comes the problems. I don't know if it's because the plugin is in a .pyp file, but the import just doesn't work.
What should I do to keep the code modular?