Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: save all node path not right #9

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ First you need to have your volumetric data ready. If not, you can access open r

Note: Make sure one folder contains only one sequence, multiple sequences need to be manually split into different folders first.

In Blender, `File - Import - Volume Data as Biovels`, select **one** of the .dcm files and click on "Volume Data as Bioxels" (you can also drag one of the .dcm files directly into the 3D viewport to trigger the import, but this is limited to .dcm format files)
In Blender, `File - Import - Volume Data as Bioxels`, select **one** of the .dcm files and click on "Volume Data as Bioxels" (you can also drag one of the .dcm files directly into the 3D viewport to trigger the import, but this is limited to .dcm format files)

![importing](docs/images/importing.png)

Expand Down
2 changes: 1 addition & 1 deletion bioxelnodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


bl_info = {
"name": "Biovel Nodes",
"name": "Bioxel Nodes",
"author": "Ma Nan",
"description": "",
"blender": (4, 1, 0),
Expand Down
3 changes: 2 additions & 1 deletion bioxelnodes/customnodes/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def execute(self, context):
shutil.copy(source_path, output_path)

for lib in bpy.data.libraries:
if lib.filepath == file:
lib_path = str(Path(bpy.path.abspath(lib.filepath)).resolve())
if lib_path == file:
blend_path = Path(bpy.path.abspath("//")).resolve()
lib.filepath = bpy.path.relpath(
str(output_path), start=str(blend_path))
Expand Down
12 changes: 6 additions & 6 deletions bioxelnodes/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def on_info_changed(self, context):

class ImportDICOMDialog(bpy.types.Operator):
bl_idname = "bioxelnodes.import_dicom_dialog"
bl_label = "Volume Data as Biovels"
bl_description = "Import Volume Data as Biovels (VDB)."
bl_label = "Volume Data as Bioxels"
bl_description = "Import Volume Data as Bioxels (VDB)."
bl_options = {'UNDO'}

filepath: bpy.props.StringProperty(
Expand Down Expand Up @@ -347,8 +347,8 @@ def invoke(self, context, event):

class ReadDICOM(bpy.types.Operator):
bl_idname = "bioxelnodes.read_dicom"
bl_label = "Volume Data as Biovels"
bl_description = "Import Volume Data as Biovels (VDB)."
bl_label = "Volume Data as Bioxels"
bl_description = "Import Volume Data as Bioxels (VDB)."
bl_options = {'UNDO'}

filepath: bpy.props.StringProperty(
Expand Down Expand Up @@ -403,8 +403,8 @@ def invoke(self, context, event):

class ImportDICOM(bpy.types.Operator):
bl_idname = "bioxelnodes.import_dicom"
bl_label = "Volume Data as Biovels"
bl_description = "Import Volume Data as Biovels (VDB)."
bl_label = "Volume Data as Bioxels"
bl_description = "Import Volume Data as Bioxels (VDB)."
bl_options = {'UNDO'}

filepath: bpy.props.StringProperty(
Expand Down
Loading