Skip to content

Commit bc6f889

Browse files
authored
Merge pull request #21 from OmooLab/feature/dev
feat: rewrite resize
2 parents 467d368 + 1db63dd commit bc6f889

25 files changed

+4653
-496
lines changed

.github/workflows/upload-assets.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Checkout Code
5959
uses: actions/checkout@v4
6060
with:
61-
lfs: 'true'
61+
lfs: "true"
6262
- name: Zip Add-on
6363
run: |
6464
zip -r package.zip bioxelnodes
@@ -72,7 +72,7 @@ jobs:
7272
asset_path: ./package.zip
7373
asset_name: BioxelNodes_Addon_${{ needs.draft_release.outputs.version }}.zip
7474
asset_content_type: application/zip
75-
75+
7676
upload_blender_extension:
7777
name: Upload Blender Extension
7878
needs: draft_release
@@ -81,15 +81,14 @@ jobs:
8181
- name: Checkout Code
8282
uses: actions/checkout@v4
8383
with:
84-
lfs: 'true'
84+
lfs: "true"
8585
- name: Set up Python
8686
uses: actions/setup-python@v4
8787
with:
8888
python-version: 3.11
8989
- name: Zip Extension
9090
run: |
91-
pip download SimpleITK --dest bioxelnodes/wheels --only-binary=:all: --python-version=3.11 --platform=macosx_11_0_arm64
92-
pip download SimpleITK --dest bioxelnodes/wheels --only-binary=:all: --python-version=3.11 --platform=win_amd64
91+
pip download SimpleITK==2.3.1 --dest bioxelnodes/wheels --only-binary=:all: --python-version=3.11 --platform=win_amd64
9392
rm -r bioxelnodes/externalpackage
9493
cp extension/__init__.py bioxelnodes/__init__.py
9594
cp extension/preferences.py bioxelnodes/preferences.py

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
[中文文档](https://uj6xfhbzp0.feishu.cn/wiki/Qx3VwHuNPimeI8kr6nDcvl1DnHf?from=from_copylink)
22

3-
# Bioxel Nodes
3+
# 🦖 Bioxel Nodes
44

55
![Static Badge](https://img.shields.io/badge/Blender-orange?style=for-the-badge&logo=blender&logoColor=white)
66
![GitHub License](https://img.shields.io/github/license/OmooLab/BioxelNodes?style=for-the-badge)
77
![GitHub Release](https://img.shields.io/github/v/release/OmooLab/BioxelNodes?style=for-the-badge)
88
![GitHub Repo stars](https://img.shields.io/github/stars/OmooLab/BioxelNodes?style=for-the-badge)
99

10-
Bioxel Nodes is a Blender add-on for scientific volumetric data visualization. It using Blender's powerful Geometry Nodes | Cycles to process and render volumetric data.
10+
Bioxel Nodes is a Blender extension for scientific volumetric data visualization. It using Blender's powerful Geometry Nodes and Cycles to process and render volumetric data. You are free to share your blender file to anyone who does not install this extension, since most processes were done by Blender's native nodes.
1111

1212
## About
1313

14-
Before us, there have been many tutorials and add-ons for importing volumetric data into Blender. However, we found that there were many details that were not addressed in place, some scientific facts were ignored, and the volume rendering was not pretty enough. With Bioxel Nodes, you can easily import the volumetric data into Blender, and more importantly, it can quickly make a beautiful realistic rendering of it.
14+
Before us, there have been many tutorials and extensions for importing volumetric data into Blender. However, we found that there were many scientific issues that were not addressed in place, and the volume render results were not epic. With Bioxel Nodes, you can easily import any format volumetric data into Blender, and more importantly, make a beautiful realistic volume rendering quickly.
1515

1616
Below are some examples with Bioxel Nodes. Thanks to Cycles Render, the volumetric data can be rendered with great detail:
1717

18-
![cover](docs/assets/cover.png)
18+
![cover](https://omoolab.github.io/BioxelNodes/latest/assets/cover.png)
1919

20-
The "Bioxel" in "Bioxel Nodes", is a combination of the words "Bio-" and "Voxel". Bioxel is a voxel that stores biological data. We are developing a toolkit around Bioxel for better biological data visualization. but before its release, we made this Blender version of bioxels toolkit first, in order to let more people to have fun with volumetric data. [Getting Started](https://omoolab.github.io/BioxelNodes/latest/getting-started)
20+
So how to use this extension? please check [Getting Started](https://omoolab.github.io/BioxelNodes/latest/getting-started)
2121

2222
## Supported Format
2323

@@ -44,16 +44,16 @@ The "Bioxel" in "Bioxel Nodes", is a combination of the words "Bio-" and "Voxel"
4444
- Sections cannot be generated (will be supported soon)
4545
- Time sequence volume not supported (will be supported soon)
4646

47-
## To Upgrade Add-on
47+
## Upgrade from 0.1.x to 0.2.x
4848

49-
To upgrade from an older version of the add-on to the latest, you need to do the following:
49+
You need to do the following:
5050

5151
1. Remove the old version of Bioxel Nodes at Preferences > Add-ons
5252
2. Add the new version and restart Blender.
5353

54-
It is not support editing the same blender file across add-on versions. In order to make sure that the previous file works properly. You need to save the staged data before upgrading ( read the last section of [Getting Started](https://omoolab.github.io/BioxelNodes/latest/getting-started/#share-your-file) ).
54+
It is not support editing the same blender file across extension versions. In order to make sure that the previous file works properly. You need to save the staged data before upgrading ( read the last section of [Getting Started](https://omoolab.github.io/BioxelNodes/latest/getting-started/#share-your-file) ).
5555

56-
But even then, there is still no guarantee that the new version of the add-on will work on the old blender file. Therefore, it is highly recommended to open a new blender file to start the creating, not based on the old one.
56+
But even then, there is still no guarantee that the new version of the extension will work on the old blender file. Therefore, it is highly recommended to open a new blender file to start the creating, not based on the old one.
5757

5858
Alternatively, objects from the old file that have nothing to do with Bioxel Nodes could be append to the new blender file.
5959

bioxelnodes/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Ma Nan",
1010
"description": "",
1111
"blender": (4, 0, 0),
12-
"version": (0, 2, 0),
12+
"version": (0, 2, 3),
1313
"location": "File -> Import",
1414
"warning": "",
1515
"category": "Node"
@@ -22,7 +22,7 @@ def register():
2222
auto_load.register()
2323
menus.add()
2424
bpy.types.Scene.bioxel_layer_dir = bpy.props.StringProperty(
25-
name="Bioxel Layers Directory",
25+
name="Layer Directory",
2626
subtype='DIR_PATH',
2727
default="//"
2828
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:9dc863260e46ad32b0101f9e082a4c7162ccf1e1df7a8ea678d02961d9866d99
3-
size 4702346
2+
oid sha256:3b8abe6abfbaa3ad7db74dfcd038006a29d7fa9773d37ff4b4dd2201d3d59e9a
3+
size 6164162

bioxelnodes/customnodes/menus.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class SaveAllNodes(bpy.types.Operator):
88
bl_idname = "customnodes.save_all_nodes"
9-
bl_label = "Save All Custom Nodes"
9+
bl_label = "Save All Nodes"
1010
bl_description = "Save All Custom Nodes to Directory."
1111
bl_options = {'UNDO'}
1212

@@ -21,9 +21,9 @@ def execute(self, context):
2121
for file in files:
2222
file_name = Path(file).name
2323
# "//"
24-
custom_nodes_dir = bpy.path.abspath(context.scene.custom_nodes_dir)
24+
customnodes_node_dir = bpy.path.abspath(context.scene.customnodes_node_dir)
2525

26-
output_path: Path = Path(custom_nodes_dir, file_name).resolve()
26+
output_path: Path = Path(customnodes_node_dir, file_name).resolve()
2727
source_path: Path = Path(file).resolve()
2828

2929
if output_path != source_path:
@@ -51,7 +51,7 @@ class CUSTOMNODES_PT_CustomNodes(bpy.types.Panel):
5151
def draw(self, context):
5252
layout = self.layout
5353
scene = context.scene
54-
layout.prop(scene, 'custom_nodes_dir')
54+
layout.prop(scene, 'customnodes_node_dir')
5555
layout.operator(SaveAllNodes.bl_idname)
5656

5757

@@ -181,8 +181,8 @@ def register(self):
181181
bpy.utils.register_class(cls)
182182

183183
bpy.types.NODE_MT_add.append(self.add_node_menu)
184-
bpy.types.Scene.custom_nodes_dir = bpy.props.StringProperty(
185-
name="Nodes Directory",
184+
bpy.types.Scene.customnodes_node_dir = bpy.props.StringProperty(
185+
name="Node Directory",
186186
subtype='DIR_PATH',
187187
default="//"
188188
)

0 commit comments

Comments
 (0)