# Connecting array property from custom widget to custom filter

**URL:** https://discourse.paraview.org/t/connecting-array-property-from-custom-widget-to-custom-filter/5668
**Category:** Development
**Created:** [October 27, 2020, 11:27pm UTC](https://discourse.paraview.org/t/connecting-array-property-from-custom-widget-to-custom-filter/5668 "2020-10-27T23:27:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![coreylee](https://discourse.paraview.org/user_avatar/discourse.paraview.org/coreylee/32/14039_2.png) [@coreylee](https://discourse.paraview.org/u/coreylee)
#### Post date: [October 27, 2020, 11:27pm UTC](https://discourse.paraview.org/t/connecting-array-property-from-custom-widget-to-custom-filter/5668/1 "2020-10-27T23:27:33Z")

</div>

Hi everyone,

I am quite close to having an interesting plugin working but I am getting stuck at the interface of widgets and plugins.

I have a custom widget that is heavily based on the vtkPolyLineWidget/Representation generalized to an arbitrary polydata.

I also have a filter whose inputs include an identical polydata object. The goal is to update the input polydata in the filter to the (user modified) polydata represented in the widget. This amounts to dragging points around in the ParaView view window and ideally, those modifications will be passed to the filter via a vtkDoubleArray. Below is my xml file defining this whole contraption. the `vtkMySkeletonRepresentation` has a property `HandlePositions` marked as `information_only`. The command `GetHandlePositions` returns a `vtkDoubleArray*`. The filter `vtkInteractiveSkeletonFilter` has a property `HandlePositions` which I’d like to update with the array passed from the widget. The command `SetHandlePositions` is implemented in the C++ code for the filter via `vtkSetMacro(HandlePositions, vtkDoubleArray*)`.

[vtkInteractiveSkeletonFilter.xml](https://discourse.paraview.org/uploads/short-url/xFfSW8zlpDCqlmFi2o8ai4Or5X5.xml) (5.8 KB)

In its current configuration, I can manipulate the widget as desired, but the filter is not getting the `HandlePositions` from the widget. Currently, I am testing this by checking if the `HandlePositions` member variable in the filter is set to anything during a call to `RequestData()`.

Thanks in advance for any advice! If there is any other information I can provide here, please let me know!

Cheers,  
Corey
