# representation of filter not updated

**URL:** https://discourse.paraview.org/t/representation-of-filter-not-updated/13627
**Category:** Web Support
**Created:** [January 3, 2024, 11:08am UTC](https://discourse.paraview.org/t/representation-of-filter-not-updated/13627 "2024-01-03T11:08:45Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Kim\_Namhyun](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kim_namhyun/32/13217_2.png) [@Kim\_Namhyun](https://discourse.paraview.org/u/Kim_Namhyun)
#### Post date: [January 4, 2024, 9:11am UTC](https://discourse.paraview.org/t/representation-of-filter-not-updated/13627/4 "2024-01-04T09:11:35Z")

</div>

```auto
newProxy_g = simple.servermanager.filters.ClipClosedSurface(Input=parentProxy)
pm.RegisterProxy("sources", "ClipClosed", newProxy_g)
rep = simple.GetRepresentation(newProxy_g, simple.GetActiveView())
newProxy_g.ClippingPlane.GetProperty('Origin').SetData([1670,800,-1400])
# newProxy_g.MarkModified(newProxy_g.ClippingPlane)

proxy = simple.servermanager.CreateProxy("representations", 'ImplicitPlaneWidgetRepresentation', None)
pythonWrap = simple.servermanager.rendering.findClass(proxy)()
pythonWrap.GetProperty('WidgetBounds').SetElements(initialValues['bounds']);
  
simple.GetActiveView().Representations.append(pythonWrap)

class IPWCallback:
    def __init__ (self):
        pass

    def __call__ (self, caller, ev):
        rep.Input.ClippingPlane.SetPropertyWithName('Origin', pythonWrap.GetProperty('Origin'))

my_callback = IPWCallback()
pythonWrap.AddObserver(vtkCommand.InteractionEvent, my_callback)

```

these are my codes.

Firstly when I make clip fillter and set origin, It works.  
But When I set origin by dragging widget, I dose not work.

I can see origin of ClippingPlane Property in filter is changed after I dragged widget.  
However, Only the REPRESENTATION!! of clip filter dose not chnage.  
(VIsibility ON/OFF do work.)

I think algorithm? reuqestdata? dose not being called when I change origin of clipping-plane in filter…

Maybe related to this changing?

> [@Representations with PV5.8](https://discourse.paraview.org/t/representations-with-pv5-8/3853):
>
> It looks like in the field of representations there are some changes/improvements with PV5.8 ([https://kitware.github.io/paraview-docs/v5.8.0/cxx/MajorAPIChanges.html](https://kitware.github.io/paraview-docs/v5.8.0/cxx/MajorAPIChanges.html)), and indeed I have now successfully recompiled all my plugins and custom application with that version: Most things are looking fine, but representations are not working any more. Some are derived from the “Surface with Edges” represenation of the Render view, and some are customized “Spreadsheet views” (which I would always prefer…

[https://kitware.github.io/paraview-docs/v5.8.0/cxx/MajorAPIChanges.html](https://kitware.github.io/paraview-docs/v5.8.0/cxx/MajorAPIChanges.html)

… Thank you…

---

_[View the full topic](https://discourse.paraview.org/t/representation-of-filter-not-updated/13627)._
