# How to get field data of a given pipeline using SM Proxy model?

**URL:** https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262
**Category:** Development
**Created:** [March 26, 2024, 8:47am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262 "2024-03-26T08:47:03Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [March 26, 2024, 8:47am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/1 "2024-03-26T08:47:03Z")

</div>

Hello dear paraview developers!

I have a tremendously imporant question.

How can one receive from the given pipeline element, the list of fields, and the data, corresponding to that field?

My best regards

---

<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: [March 26, 2024, 9:00am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/2 "2024-03-26T09:00:51Z")

</div>

> given pipeline element, the list of fields

vtkSMSourceProxy:: GetDataInformation()

[https://kitware.github.io/paraview-docs/latest/cxx/classvtkSMSourceProxy.html#a6de7a4da36aa127de651536e3f7b2942](https://kitware.github.io/paraview-docs/latest/cxx/classvtkSMSourceProxy.html#a6de7a4da36aa127de651536e3f7b2942)

> and the data,

You dont really want that, that means transporting the data from the server to the client.

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [March 26, 2024, 9:06am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/3 "2024-03-26T09:06:08Z")

</div>

Thanks a lot!

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [March 26, 2024, 9:07am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/4 "2024-03-26T09:07:46Z")

</div>

Are Source Proxies applicable to filters?

---

<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: [March 26, 2024, 9:08am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/5 "2024-03-26T09:08:34Z")

</div>

yes

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [March 26, 2024, 9:11am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/6 "2024-03-26T09:11:22Z")

</div>

> [@mwestphal](#):
>
> that means transporting the data from the server to the client

What should I do if I want to pass for example, 100 values from the server to the client?  
How could I achieve that?

---

<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: [March 26, 2024, 9:20am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/7 "2024-03-26T09:20:33Z")

</div>

> 100 values from the server to the client?

You do not want to do that in general, if needed, you can use an information property.

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [March 26, 2024, 9:55am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/8 "2024-03-26T09:55:43Z")

</div>

Could you please advise me where to search for an example?

---

<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: [March 26, 2024, 9:58am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/9 "2024-03-26T09:58:10Z")

</div>

Your own post: [Deve - #2 by mwestphal](https://discourse.paraview.org/t/deve/14229/2)

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [March 26, 2024, 10:47am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/10 "2024-03-26T10:47:46Z")

</div>

It works well, when I insert a specific function in my own filter

Is there a way to do the same with any given source/filter without modifying it?

---

<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: [March 26, 2024, 11:59am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/11 "2024-03-26T11:59:30Z")

</div>

> [@joint](#):
>
> Is there a way to do the same with any given source/filter without modifying it?

Not the same. However you can fetch the data with the `ClientServerMoveData` filter and use `GetClientSideObject`, keep in mind it can be very costly.

Look for example implementation in `vtkSpreadSheetView::StreamToClient()`

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [March 26, 2024, 12:15pm UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/12 "2024-03-26T12:15:01Z")

</div>

Dear Mathieu, thanks you a lot!

I will try to do follow this path

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [June 18, 2024, 10:21am UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/13 "2024-06-18T10:21:32Z")

</div>

> [@mwestphal](#):
>
> GetClientSideObject

Dear Mathieu, could you please explain, could GetClientSideObject be used without ClientServerMoveData?

---

<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: [June 18, 2024, 12:31pm UTC](https://discourse.paraview.org/t/how-to-get-field-data-of-a-given-pipeline-using-sm-proxy-model/14262/14 "2024-06-18T12:31:54Z")

</div>

Yes, when you are in “builtin” mode, GetClientSideObject always provide the server side object as the server and the client are actually a single executable and share a the same memory space.
