From 86fc18ab690d4e11e0ee8c89fdaf48eed67e3537 Mon Sep 17 00:00:00 2001 From: Ma Nan Date: Thu, 10 Oct 2024 12:54:51 +0800 Subject: [PATCH] feat: add help menu feat: better surface topo fix: cutter node invert not work --- bioxelnodes/assets/Nodes/BioxelNodes_latest.blend | 4 ++-- bioxelnodes/blender_manifest.toml | 2 +- bioxelnodes/constants.py | 2 +- bioxelnodes/menus.py | 10 +++++++++- bioxelnodes/operators/misc.py | 14 ++++++++++++++ docs/{qa.md => faq.md} | 2 +- mkdocs.yml | 2 +- pyproject.toml | 2 +- 8 files changed, 30 insertions(+), 8 deletions(-) rename docs/{qa.md => faq.md} (99%) diff --git a/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend b/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend index c08f7ae..789cd9e 100644 --- a/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend +++ b/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:991e02177a1f2c9c6b3f83b016bacb38801381ae0c3e21fba60967e0d6a84073 -size 9143436 +oid sha256:b414fcab2662c6bc12abecd318421e5389a9871579d0f98c1954c1d26b54ed17 +size 9232450 diff --git a/bioxelnodes/blender_manifest.toml b/bioxelnodes/blender_manifest.toml index 200499c..83b10f8 100644 --- a/bioxelnodes/blender_manifest.toml +++ b/bioxelnodes/blender_manifest.toml @@ -1,7 +1,7 @@ schema_version = "1.0.0" id = "bioxelnodes" -version = "1.0.3" +version = "1.0.4" name = "Bioxel Nodes" tagline = "For scientific volumetric data visualization in Blender" maintainer = "Ma Nan " diff --git a/bioxelnodes/constants.py b/bioxelnodes/constants.py index 2aeb3e5..0075dee 100644 --- a/bioxelnodes/constants.py +++ b/bioxelnodes/constants.py @@ -1,6 +1,6 @@ from pathlib import Path -VERSIONS = [{"label": "Latest", "node_version": (1, 0, 3)}, +VERSIONS = [{"label": "Latest", "node_version": (1, 0, 4)}, {"label": "v0.3.x", "node_version": (0, 3, 3)}, {"label": "v0.2.x", "node_version": (0, 2, 9)}] diff --git a/bioxelnodes/menus.py b/bioxelnodes/menus.py index 396e9de..1c9cb5f 100644 --- a/bioxelnodes/menus.py +++ b/bioxelnodes/menus.py @@ -19,7 +19,7 @@ ExtractNodeMesh, ExtractNodeBboxWire, ExtractNodeShapeWire) from .operators.io import (ImportAsLabel, ImportAsScalar, ImportAsColor) -from .operators.misc import (CleanTemp, +from .operators.misc import (CleanTemp, Help, ReLinkNodeLib, RemoveAllMissingLayers, RenderSettingPreset, SaveAllLayersCache, SaveNodeLib, SliceViewer) @@ -57,6 +57,10 @@ def draw(self, context): layout.separator() layout.menu(RenderSettingMenu.bl_idname) + layout.separator() + layout.operator(Help.bl_idname, + icon=Help.bl_icon) + class FetchLayerMenu(bpy.types.Menu): bl_idname = "BIOXELNODES_MT_ADD_LAYER" @@ -210,6 +214,10 @@ def draw(self, context): layout.separator() layout.menu(RenderSettingMenu.bl_idname) + layout.separator() + layout.operator(Help.bl_idname, + icon=Help.bl_icon) + def TOPBAR(self, context): layout = self.layout diff --git a/bioxelnodes/operators/misc.py b/bioxelnodes/operators/misc.py index b7bf190..1558d8a 100644 --- a/bioxelnodes/operators/misc.py +++ b/bioxelnodes/operators/misc.py @@ -1,3 +1,4 @@ +import webbrowser import bpy from pathlib import Path import shutil @@ -260,3 +261,16 @@ def invoke(self, context, event): event, message=f"Are you sure to remove all **Missing** layers?") return {'RUNNING_MODAL'} + + +class Help(bpy.types.Operator): + bl_idname = "bioxelnodes.help" + bl_label = "Need Help?" + bl_description = "Online Manual for Beginner" + bl_icon = "HELP" + + def execute(self, context): + webbrowser.open( + 'https://omoolab.github.io/BioxelNodes/latest/', new=2) + + return {'FINISHED'} diff --git a/docs/qa.md b/docs/faq.md similarity index 99% rename from docs/qa.md rename to docs/faq.md index c66f5c9..72cc0ce 100644 --- a/docs/qa.md +++ b/docs/faq.md @@ -1,4 +1,4 @@ -# Q & A +# FAQ ## Nothing in the scene when rendering? diff --git a/mkdocs.yml b/mkdocs.yml index f6199bc..e16affa 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -14,7 +14,7 @@ nav: - Advanced Usage: advanced_usage.md - Support Format: support_format.md - Improve Performance: improve_performance.md - - Q & A: qa.md + - FAQ: faq.md - Tutorials: - SARS-Cov-2: SARS-Cov-2.md diff --git a/pyproject.toml b/pyproject.toml index 2cffead..1e38f9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bioxelnodes" -version = "1.0.3" +version = "1.0.4" description = "" authors = ["Ma Nan "] license = "MIT"