Export_3ds: Improved distance cue node search
[blender-addons.git] / mesh_tissue / __init__.py
bloba0f6398e485e94ca2f1f8f98b7570eb2fa725e49
1 # SPDX-FileCopyrightText: 2017 Alessandro Zomparelli
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 # --------------------------------- TISSUE ----------------------------------- #
6 # ------------------------------- version 0.3 -------------------------------- #
7 # #
8 # Creates duplicates of selected mesh to active morphing the shape according #
9 # to target faces. #
10 # #
11 # Alessandro Zomparelli #
12 # (2017) #
13 # #
14 # http://www.co-de-it.com/ #
15 # https://docs.blender.org/manual/en/latest/addons/mesh/tissue.html #
16 # #
17 # ############################################################################ #
19 bl_info = {
20 "name": "Tissue",
21 "author": "Alessandro Zomparelli",
22 "version": (0, 3, 70),
23 "blender": (4, 0, 2),
24 "location": "",
25 "description": "Tools for Computational Design",
26 "warning": "",
27 "doc_url": "{BLENDER_MANUAL_URL}/addons/mesh/tissue.html",
28 "tracker_url": "https://github.com/alessandro-zomparelli/tissue/issues",
29 "category": "Mesh",
33 if "bpy" in locals():
34 import importlib
35 importlib.reload(tessellate_numpy)
36 importlib.reload(tissue_properties)
37 importlib.reload(weight_tools)
38 importlib.reload(weight_reaction_diffusion)
39 importlib.reload(dual_mesh)
40 importlib.reload(lattice)
41 importlib.reload(uv_to_mesh)
42 importlib.reload(utils)
43 importlib.reload(config)
44 importlib.reload(material_tools)
45 importlib.reload(curves_tools)
46 importlib.reload(polyhedra)
47 importlib.reload(texture_reaction_diffusion)
48 importlib.reload(contour_curves)
50 else:
51 from . import tessellate_numpy
52 from . import tissue_properties
53 from . import weight_tools
54 from . import weight_reaction_diffusion
55 from . import dual_mesh
56 from . import lattice
57 from . import uv_to_mesh
58 from . import utils
59 from . import config
60 from . import material_tools
61 from . import curves_tools
62 from . import polyhedra
63 from . import texture_reaction_diffusion
64 from . import contour_curves
66 import bpy
67 from bpy.props import PointerProperty, CollectionProperty, BoolProperty
70 classes = (
71 config.tissuePreferences,
72 config.tissue_install_numba,
74 tissue_properties.tissue_prop,
75 tissue_properties.tissue_tessellate_prop,
76 tessellate_numpy.tissue_tessellate,
77 tessellate_numpy.tissue_update_tessellate,
78 tessellate_numpy.tissue_update_tessellate_deps,
79 tessellate_numpy.TISSUE_PT_tessellate,
80 tessellate_numpy.tissue_rotate_face_left,
81 tessellate_numpy.tissue_rotate_face_right,
82 tessellate_numpy.tissue_rotate_face_flip,
83 tessellate_numpy.TISSUE_PT_tessellate_object,
84 tessellate_numpy.TISSUE_PT_tessellate_frame,
85 tessellate_numpy.TISSUE_PT_tessellate_component,
86 tessellate_numpy.TISSUE_PT_tessellate_thickness,
87 tessellate_numpy.TISSUE_PT_tessellate_direction,
88 tessellate_numpy.TISSUE_PT_tessellate_options,
89 tessellate_numpy.TISSUE_PT_tessellate_coordinates,
90 tessellate_numpy.TISSUE_PT_tessellate_rotation,
91 tessellate_numpy.TISSUE_PT_tessellate_selective,
92 tessellate_numpy.TISSUE_PT_tessellate_morphing,
93 tessellate_numpy.TISSUE_PT_tessellate_iterations,
94 tessellate_numpy.tissue_render_animation,
95 tessellate_numpy.tissue_remove,
97 weight_tools.face_area_to_vertex_groups,
98 weight_tools.vertex_colors_to_vertex_groups,
99 weight_tools.vertex_group_to_vertex_colors,
100 weight_tools.vertex_group_to_uv,
101 weight_tools.TISSUE_PT_weight,
102 weight_tools.TISSUE_PT_color,
103 weight_tools.weight_contour_mask,
104 weight_tools.weight_contour_displace,
105 weight_tools.harmonic_weight,
106 weight_tools.edges_deformation,
107 weight_tools.edges_bending,
108 weight_tools.weight_laplacian,
109 weight_reaction_diffusion.start_reaction_diffusion,
110 weight_reaction_diffusion.TISSUE_PT_reaction_diffusion,
111 weight_reaction_diffusion.TISSUE_PT_reaction_diffusion_performance,
112 weight_reaction_diffusion.TISSUE_PT_reaction_diffusion_vector_field,
113 weight_reaction_diffusion.TISSUE_PT_reaction_diffusion_weight,
114 weight_reaction_diffusion.TISSUE_PT_reaction_diffusion_cache,
115 weight_reaction_diffusion.reset_reaction_diffusion_weight,
116 weight_tools.formula_prop,
117 weight_reaction_diffusion.reaction_diffusion_prop,
118 weight_tools.weight_formula,
119 weight_tools.update_weight_formula,
120 weight_tools.curvature_to_vertex_groups,
121 weight_tools.weight_formula_wiki,
122 weight_tools.tissue_weight_distance,
123 weight_tools.random_weight,
124 weight_reaction_diffusion.bake_reaction_diffusion,
125 weight_reaction_diffusion.reaction_diffusion_free_data,
126 weight_tools.tissue_weight_streamlines,
128 contour_curves.tissue_weight_contour_curves_pattern,
129 contour_curves.tissue_update_contour_curves,
130 contour_curves.tissue_contour_curves_prop,
131 contour_curves.TISSUE_PT_contour_curves,
133 dual_mesh.dual_mesh,
134 dual_mesh.dual_mesh_tessellated,
136 lattice.lattice_along_surface,
138 material_tools.random_materials,
139 material_tools.weight_to_materials,
141 curves_tools.tissue_to_curve_prop,
142 curves_tools.tissue_convert_to_curve,
143 curves_tools.tissue_update_convert_to_curve,
144 curves_tools.TISSUE_PT_convert_to_curve,
146 uv_to_mesh.uv_to_mesh,
148 polyhedra.polyhedral_wireframe,
149 polyhedra.tissue_update_polyhedra,
150 polyhedra.tissue_polyhedra_prop,
151 polyhedra.TISSUE_PT_polyhedra_object,
153 texture_reaction_diffusion.tex_reaction_diffusion_prop,
154 texture_reaction_diffusion.start_tex_reaction_diffusion,
155 texture_reaction_diffusion.reset_tex_reaction_diffusion,
156 texture_reaction_diffusion.TISSUE_PT_tex_reaction_diffusion,
157 texture_reaction_diffusion.TISSUE_PT_tex_reaction_diffusion_images
160 def register():
161 from bpy.utils import register_class
162 for cls in classes:
163 bpy.utils.register_class(cls)
164 #bpy.utils.register_module(__name__)
165 bpy.types.Object.tissue = PointerProperty(
166 type=tissue_properties.tissue_prop
168 bpy.types.Object.tissue_tessellate = PointerProperty(
169 type=tissue_properties.tissue_tessellate_prop
171 bpy.types.Object.tissue_polyhedra = PointerProperty(
172 type=polyhedra.tissue_polyhedra_prop
174 bpy.types.Object.tissue_to_curve = PointerProperty(
175 type=curves_tools.tissue_to_curve_prop
177 bpy.types.Object.tissue_contour_curves = PointerProperty(
178 type=contour_curves.tissue_contour_curves_prop
180 bpy.types.Object.formula_settings = CollectionProperty(
181 type=weight_tools.formula_prop
183 bpy.types.Object.reaction_diffusion_settings = PointerProperty(
184 type=weight_reaction_diffusion.reaction_diffusion_prop
186 bpy.types.Object.tex_reaction_diffusion_settings = PointerProperty(
187 type=texture_reaction_diffusion.tex_reaction_diffusion_prop
189 # weight_tools
190 bpy.app.handlers.frame_change_post.append(weight_reaction_diffusion.reaction_diffusion_def)
191 bpy.app.handlers.frame_change_post.append(texture_reaction_diffusion.tex_reaction_diffusion_def)
193 def unregister():
194 from bpy.utils import unregister_class
195 for cls in classes:
196 bpy.utils.unregister_class(cls)
198 del bpy.types.Object.tissue_tessellate
201 if __name__ == "__main__":
202 register()