# How to reflect changes in slice\_implicit\_functions settings

**URL:** https://discourse.paraview.org/t/how-to-reflect-changes-in-slice-implicit-functions-settings/12437
**Category:** ParaView Support
**Tags:** python
**Created:** [July 3, 2023, 6:53am UTC](https://discourse.paraview.org/t/how-to-reflect-changes-in-slice-implicit-functions-settings/12437 "2023-07-03T06:53:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [July 3, 2023, 6:53am UTC](https://discourse.paraview.org/t/how-to-reflect-changes-in-slice-implicit-functions-settings/12437/1 "2023-07-03T06:53:50Z")

</div>

I created a simple Slice Plugin in Python that inherits from `VTKPythonAlgorithmBase`. (  
[mySlicePlugin.py](https://discourse.paraview.org/uploads/short-url/p3FdWCF8Ui0mA0GleKhZrplrwBL.py) (1.8 KB))

This plugin uses “slice\_implicit\_functions” to set the implicit functions for cutting, but when I change the settings (e.g., change the origin of the cutting plane) and click the `Apply` button, the output shape does not change. Is there any way to make the output result reflect the changed settings?  
The operating environment is ParaView 5.11.1 on Windows.

Any advice would be appreciated.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 3, 2023, 7:20am UTC](https://discourse.paraview.org/t/how-to-reflect-changes-in-slice-implicit-functions-settings/12437/2 "2023-07-03T07:20:47Z")

</div>

This may be caused by the fact that your are changing properties of a proxy property, not of the proxy itself and maybe this is not correctly supported by python plugins.

You can try adding a dummy property with another setter (just a boolean) and try changing it and pressing apply to check that,

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [July 4, 2023, 10:38am UTC](https://discourse.paraview.org/t/how-to-reflect-changes-in-slice-implicit-functions-settings/12437/3 "2023-07-04T10:38:52Z")

</div>

Thank you for your reply. I will look into it.

---

<div class="post-metadata">

### Author: ![moritz-h](https://discourse.paraview.org/user_avatar/discourse.paraview.org/moritz-h/32/6862_2.png) [@moritz-h](https://discourse.paraview.org/u/moritz-h)
#### Post date: [July 10, 2023, 4:31pm UTC](https://discourse.paraview.org/t/how-to-reflect-changes-in-slice-implicit-functions-settings/12437/4 "2023-07-10T16:31:25Z")

</div>

Had a similar problem for a C++ Plugin and tried to find out how the default clip and slice filters are doing this. I found the solution here: [https://gitlab.kitware.com/paraview/paraview/-/blob/v5.11.1/VTKExtensions/FiltersGeneral/vtkPVDataSetAlgorithmSelectorFilter.cxx#L257-277](https://gitlab.kitware.com/paraview/paraview/-/blob/v5.11.1/VTKExtensions/FiltersGeneral/vtkPVDataSetAlgorithmSelectorFilter.cxx#L257-277)  
The GetMTime() function of the filter had to be overwritten to return maximum MTime of itself and MTime of the implicit function.  
If it is possible to overwrite GetMTime from Python that may also work.

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [July 11, 2023, 10:46am UTC](https://discourse.paraview.org/t/how-to-reflect-changes-in-slice-implicit-functions-settings/12437/5 "2023-07-11T10:46:01Z")

</div>

Thank you for the very useful information! Unfortunately, I have looked for a Python implementation, but so far have not been able to find one.
