Skip to content

Commit

Permalink
Merge pull request #384 from favreau/master
Browse files Browse the repository at this point in the history
Fixed user data parameter in model material widgets
  • Loading branch information
favreau authored Jul 23, 2024
2 parents 696cd0d + 6e5fdef commit d7f39ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bioexplorer/pythonsdk/bioexplorer/notebook_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
)
Expand Down Expand Up @@ -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]
Expand All @@ -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(
[
Expand Down

0 comments on commit d7f39ae

Please sign in to comment.