fix: the as color button's text is incorrectly written as "as label"
feat: speed up convertion when as label feat: add new "Extrude Transform" node
This commit is contained in:
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
schema_version = "1.0.0"
|
||||
|
||||
id = "bioxelnodes"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
name = "Bioxel Nodes"
|
||||
tagline = "For scientific volumetric data visualization in Blender"
|
||||
maintainer = "Ma Nan <icrdr2010@outlook.com>"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from pathlib import Path
|
||||
|
||||
VERSIONS = [{"label": "Latest", "node_version": (1, 0, 2)},
|
||||
VERSIONS = [{"label": "Latest", "node_version": (1, 0, 3)},
|
||||
{"label": "v0.3.x", "node_version": (0, 3, 3)},
|
||||
{"label": "v0.2.x", "node_version": (0, 2, 9)}]
|
||||
|
||||
@@ -165,7 +165,13 @@ MENU_ITEMS = [
|
||||
'icon': 'PROP_CON',
|
||||
'name': 'ReCenter',
|
||||
'description': ''
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'Extract Transform',
|
||||
'icon': 'EMPTY_AXIS',
|
||||
'name': 'ExtractTransform',
|
||||
'description': ''
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -96,8 +96,8 @@ class ImportAsLabel(bpy.types.Operator, ImportVolumetricData):
|
||||
|
||||
class ImportAsColor(bpy.types.Operator, ImportVolumetricData):
|
||||
bl_idname = "bioxelnodes.import_as_color"
|
||||
bl_label = "Import as Label"
|
||||
bl_description = "Import Volumetric Data to Container as Label"
|
||||
bl_label = "Import as Color"
|
||||
bl_description = "Import Volumetric Data to Container as Color"
|
||||
bl_icon = "EVENT_C"
|
||||
read_as = "COLOR"
|
||||
|
||||
@@ -505,7 +505,7 @@ class ImportVolumetricDataDialog(bpy.types.Operator):
|
||||
label_count: bpy.props.IntProperty() # type: ignore
|
||||
|
||||
smooth: bpy.props.IntProperty(name="Smooth Size (Larger takes longer time)",
|
||||
default=3) # type: ignore
|
||||
default=0) # type: ignore
|
||||
|
||||
read_as: bpy.props.EnumProperty(name="Read as",
|
||||
default="SCALAR",
|
||||
@@ -624,7 +624,7 @@ class ImportVolumetricDataDialog(bpy.types.Operator):
|
||||
progress,
|
||||
progress_step)
|
||||
label_data = data == np.full_like(data, i+1)
|
||||
label_data = label_data.astype(np.float32)
|
||||
# label_data = label_data.astype(np.float32)
|
||||
try:
|
||||
layer = Layer(data=label_data,
|
||||
name=name_i,
|
||||
|
||||
@@ -370,8 +370,6 @@ class FillOperator(OutputLayerOperator):
|
||||
def invoke(self, context, event):
|
||||
layer_obj = get_selected_layer(context)
|
||||
if layer_obj:
|
||||
scalar_min = get_layer_prop_value(layer_obj, "min")
|
||||
self.fill_value = min(scalar_min, 0)
|
||||
name = get_layer_label(layer_obj)
|
||||
context.window_manager.invoke_props_dialog(self,
|
||||
title=f"Fill {name}")
|
||||
|
||||
Reference in New Issue
Block a user