# File Series Support for Custom Time-Unaware Plugin

**URL:** https://discourse.paraview.org/t/file-series-support-for-custom-time-unaware-plugin/15566
**Category:** Development
**Created:** [October 15, 2024, 8:27pm UTC](https://discourse.paraview.org/t/file-series-support-for-custom-time-unaware-plugin/15566 "2024-10-15T20:27:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Keith\_Ballard\_CIV](https://discourse.paraview.org/user_avatar/discourse.paraview.org/keith_ballard_civ/32/10573_2.png) [@Keith\_Ballard\_CIV](https://discourse.paraview.org/u/Keith_Ballard_CIV)
#### Post date: [October 15, 2024, 8:27pm UTC](https://discourse.paraview.org/t/file-series-support-for-custom-time-unaware-plugin/15566/1 "2024-10-15T20:27:40Z")

</div>

I am working on a custom ParaView plugin for one of our internal simulation tools. To ease development, I made the plugin time-unaware and would like to use the `vtkFileSeriesReader` with si\_class `vtkSIMetaReaderProxy` to provide file series support to my custom plugin. However, the custom plugin provides two outputs. One output port provides volume information, while the second output port provides immersed surface information (different data altogether from the volume).

The issue is that I cannot figure out how to funnel the two outputs from my custom plugin to the `SourceProxy` with `class=vtkFileSeriesReader`. I tried adding

```auto
<OutputPort name="Volume" index="0" id="port0" />
<OutputPort name="Surface" index="1" id="port1" />

```

to the associated `SourceProxy`, but the two ports do not appear in ParaView. Everything does work fine if I remove the file series wrapper altogether and use my custom plugin directly.

Any guidance would be appreciated!

---

<div class="post-metadata">

### Author: ![Keith\_Ballard\_CIV](https://discourse.paraview.org/user_avatar/discourse.paraview.org/keith_ballard_civ/32/10573_2.png) [@Keith\_Ballard\_CIV](https://discourse.paraview.org/u/Keith_Ballard_CIV)
#### Post date: [October 15, 2024, 10:27pm UTC](https://discourse.paraview.org/t/file-series-support-for-custom-time-unaware-plugin/15566/2 "2024-10-15T22:27:03Z")

</div>

Update: I found [[Paraview] Problem using FileSeriesReader and multiple output ports](https://www.paraview.org/pipermail/paraview/2011-December/023494.html) after further digging online. It appears vtkFileSeriesReader is the limiting piece here.

Does there happen to be a proxy to provide file series support that has been developed since and supports multiple outputs?

---

<div class="post-metadata">

### Author: ![Keith\_Ballard\_CIV](https://discourse.paraview.org/user_avatar/discourse.paraview.org/keith_ballard_civ/32/10573_2.png) [@Keith\_Ballard\_CIV](https://discourse.paraview.org/u/Keith_Ballard_CIV)
#### Post date: [October 16, 2024, 2:21am UTC](https://discourse.paraview.org/t/file-series-support-for-custom-time-unaware-plugin/15566/3 "2024-10-16T02:21:44Z")

</div>

I ended up linking my plugin against `ParaView::VTKExtensionsIOCore` to have access to `vtkFileSeriesReader`. I then created a really thin class that inherited from `vtkFileSeriesReader` and only overloaded the constructor to change the number of outputs to 2. Fortunately, after reading through vtkFileSeriesReader.cxx, I noticed the code throughout the class is generic with respect to the number of outputs. The constructor has the only limiting line of code. Kudos to the developer(s) who thought far enough ahead to let folks reuse that class.

---

<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: [November 12, 2024, 9:29am UTC](https://discourse.paraview.org/t/file-series-support-for-custom-time-unaware-plugin/15566/4 "2024-11-12T09:29:08Z")

</div>

Hi @Keith_Ballard_CIV

This is a good feature ideas, do not hesitate to create it in [Feature Requests - ParaView](https://discourse.paraview.org/c/feature-requests/14) 🙂
