From 6e5fdefdb15de5482bfd86af40c8551994c6355c Mon Sep 17 00:00:00 2001 From: Cyrille Pierre Henri Favreau Date: Mon, 22 Jul 2024 16:18:33 +0200 Subject: [PATCH] Fixed user data parameter in model material widgets --- bioexplorer/pythonsdk/bioexplorer/notebook_widgets.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bioexplorer/pythonsdk/bioexplorer/notebook_widgets.py b/bioexplorer/pythonsdk/bioexplorer/notebook_widgets.py index 75219995c..a3ae142a7 100644 --- a/bioexplorer/pythonsdk/bioexplorer/notebook_widgets.py +++ b/bioexplorer/pythonsdk/bioexplorer/notebook_widgets.py @@ -442,6 +442,7 @@ def set_colormap(model_id, colormap_name, shading_mode): reflection_index=reflection_index_slider.value, glossiness=glossiness_slider.value, user_parameter=user_param_slider.value, + cast_user_data=cast_user_data_checkbox.value, emission=emission_slider.value, chameleon_mode=self.CHAMELEON_MODES[chameleon_combobox.value], ) @@ -524,8 +525,8 @@ def update_materials_from_chameleon_modes(_): emission_slider = FloatSlider(description="Emission", min=0, max=100, value=0) emission_slider.observe(update_materials_from_shading_modes) - cast_simulation_checkbox = Checkbox(description="Simulation", value=False) - cast_simulation_checkbox.observe(update_materials_from_shading_modes) + cast_user_data_checkbox = Checkbox(description="User data", value=False) + cast_user_data_checkbox.observe(update_materials_from_shading_modes) horizontal_box_detail1 = HBox( [opacity_slider, refraction_index_slider, reflection_index_slider] @@ -534,7 +535,7 @@ def update_materials_from_chameleon_modes(_): [glossiness_slider, specular_exponent_slider, user_param_slider] ) horizontal_box_detail3 = HBox( - [emission_slider, cast_simulation_checkbox, chameleon_combobox] + [emission_slider, cast_user_data_checkbox, chameleon_combobox] ) vertical_box = VBox( [