<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I have a custom ParaView reader plugin that I've written, which works as expected when loaded and used through the GUI, but I'm having trouble getting it to work with pvbatch. &nbsp;I have tried a couple of different approaches, with varying degrees of success. &nbsp;The one that gets furthest is this..</div><div><br></div><div>Using the GUI I load the plugin. &nbsp;I'm running in client/server mode, so load the plugin for both sides. &nbsp;I then load a custom data file using this plugin. &nbsp;An unstructured grid is generated and rendered, this works as expected. &nbsp;I then save the state.</div><div>If I relaunch ParaView and the pvserver, again load the plugin on both sides, and load the state file that I just saved, the data is loaded and rendered. &nbsp;So far, so good.</div><div><br></div><div>For pvbatch I try running with the following script:</div><div><br></div><div>------------------</div><div>try: paraview.simple</div><div>except: from paraview.simple import *</div><div><br></div><div>servermanager.LoadPlugin('/home/insley/libMyCustomReader.so')</div><div>servermanager.LoadState("/home/insley/my_state_flle.pvsm")</div><div><br></div><div>curView = GetRenderView()</div><div>SetActiveView(curView)</div><div>curView.ViewSize = [1920, 1080]</div><div>curView.StillRender()</div><div>WriteImage("/home/insley/test_image.png")</div><div>-----------------</div><div><br></div><div>I call DebugOn() in the constructor of my class, and see lots of output from pvbatch so it seems that the plugin is getting loaded correctly. &nbsp;I see output from the RequestInformation() in my reader class, but I do not see anything from the RequestData() method. &nbsp;So it appears that RequestData() is never called, and the actual data is not being read from disk. &nbsp;Is there something additional that I need to do to cause that to be invoked?</div><div><br></div><div>After the RequestInformation() output I see a number of printouts about my class being Registered and UnRegistered by other classes (vtkClientServerInterpreter, vtkCompositeDataPipeline, etc) and the output from my class' destructor.</div><div><br></div><div>A black image (of resolution 1920x1080) is saved to /home/insley/test_image.png</div><div><br></div><div>Any insight that folks could provide would be much appreciated.</div><div><br></div><div>Thanks,</div><div>joe.</div><br><br><div><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">===================================================</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">joseph a. insley&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<a href="mailto:insley@mcs.anl.gov">insley@mcs.anl.gov</a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">mathematics &amp; computer science division &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">argonne national laboratory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div></span></span></span><br class="Apple-interchange-newline"></span></div></body></html>