<div dir="ltr"><div class="gmail_extra">Attached is a script that demonstrates how to do this. I suspect you're putting your code in `CreatePipeline`. As the name  suggests, it's only called when creating pipeline the first time, and not on every iteration. I've modified a ParaView test script. Modifications are in `### START MODIFICATION ###` and `### END MODIFICATION ###` blocks. You can run this as follows:</div><div class="gmail_extra"><br></div><div class="gmail_extra">> bin/pvbatch -sym -dr  <ParaViewSource>/CoProcessing/PythonCatalyst/Testing/Cxx/waveletdriver.py /tmp/cptest.py 10<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Utkarsh</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>