diff --git a/molecularnodes/__init__.py b/molecularnodes/__init__.py
index ef291d18..61580648 100644
--- a/molecularnodes/__init__.py
+++ b/molecularnodes/__init__.py
@@ -11,35 +11,36 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
+from .util.utils import template_install
+from . import auto_load
+from .io.load import MolecularNodesObjectProperties
+from .ui.node_menu import MN_add_node_menu
+from .io.mda import _rejuvenate_universe, _sync_universe
+import bpy
+
bl_info = {
- "name" : "molecularnodes",
- "author" : "Brady Johnston",
- "description" : "Toolbox for molecular animations in Blender & Geometry Nodes.",
- "blender" : (4, 0, 0),
- "version" : (4, 0, 8),
- "location" : "Scene Properties -> Molecular Nodes",
- "warning" : "",
- "doc_url" : "https://bradyajohnston.github.io/MolecularNodes/",
- "tracker_url" : "https://github.com/BradyAJohnston/MolecularNodes/issues",
- "category" : "Import"
+ "name": "molecularnodes",
+ "author": "Brady Johnston",
+ "description": "Toolbox for molecular animations in Blender & Geometry Nodes.",
+ "blender": (4, 0, 0),
+ "version": (4, 0, 9),
+ "location": "Scene Properties -> Molecular Nodes",
+ "warning": "",
+ "doc_url": "https://bradyajohnston.github.io/MolecularNodes/",
+ "tracker_url": "https://github.com/BradyAJohnston/MolecularNodes/issues",
+ "category": "Import"
}
-import bpy
-from . import io
-from .io.mda import _rejuvenate_universe, _sync_universe
-from .ui.node_menu import MN_add_node_menu
-from .io.load import MolecularNodesObjectProperties
-from . import auto_load
-from .util.utils import template_install
-
auto_load.init()
universe_funcs = [_sync_universe, _rejuvenate_universe]
+
def register():
auto_load.register()
bpy.types.NODE_MT_add.append(MN_add_node_menu)
- bpy.types.Object.mn = bpy.props.PointerProperty(type=MolecularNodesObjectProperties)
+ bpy.types.Object.mn = bpy.props.PointerProperty(
+ type=MolecularNodesObjectProperties)
for func in universe_funcs:
try:
bpy.app.handlers.load_post.append(func)
@@ -47,6 +48,7 @@ def register():
print(f"Filaed to append {func}, error: {e}.")
template_install()
+
def unregister():
try:
bpy.types.NODE_MT_add.remove(MN_add_node_menu)
@@ -63,6 +65,7 @@ def unregister():
# if __name__ == "main":
# register()
+
# # register won't be called when MN is run as a module
bpy.app.handlers.load_post.append(_rejuvenate_universe)
bpy.app.handlers.save_post.append(_sync_universe)
diff --git a/molecularnodes/assets/template/MolecularNodes.zip b/molecularnodes/assets/template/MolecularNodes.zip
index 787001f8..b84fd6a1 100644
Binary files a/molecularnodes/assets/template/MolecularNodes.zip and b/molecularnodes/assets/template/MolecularNodes.zip differ
diff --git a/pyproject.toml b/pyproject.toml
index 83f630a5..fd99e9a0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "molecularnodes"
-version = "4.0.8"
+version = "4.0.9"
description = "Toolbox for molecular animations with Blender and Geometry Nodes."
authors = ["Brady Johnston "]
license = "MIT"