i was making a addon to create a stylized tree and when i run the script in the text editor of blender it run well , but when i convert it to a package ZIP to use it like a addon . Console show me No module named 'particles to leaves'
bl_info={
"name":"Become to tree",
"author":"Cristofer Erik Calvo Milla",
"version":(1,0),
"blend":(2,91,0),
"location":"View3d>Tool",
"warning":"",
"wiki_url":"",
"category":"Add Mesh"
}
import bpy
import sys
import os
import importlib
from bpy.props import PointerProperty
from bpy.props import EnumProperty
sys.path.insert(1,'.\Branch')
sys.path.insert(2,'.\Find_Position')
sys.path.insert(3,'.\particles_to_leaves')
sys.path.insert(4,'.\Transform_branch')
from particles_to_leaves import system_particles
from Branch import Type_Trunk
now i can add my addon to blender, but i can't see my menu in view -->UI
from . import foo
.... rather than append relative paths (a single escape character `` in a string is another issue) Related blender.stackexchange.com/questions/183773/… $\endgroup$ – batFINGER Jan 13 at 10:22