Utkarsh, Yes, that seems to have done the trick. Thanks a bunch.
joe. On Sep 23, 2011, at 2:30 PM, Utkarsh Ayachit wrote: > Joe, > > I believe you're hitting the "GetRenderView()" bug that was recently > fixed in git-master. Try obtaining the render view by using > GetRenderViews()[0] instead. Does that help? > > Utkarsh > > On Wed, Sep 21, 2011 at 9:24 PM, joseph insley <ins...@mcs.anl.gov> wrote: >> Hi, >> 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. I have tried a couple of different >> approaches, with varying degrees of success. The one that gets furthest is >> this.. >> Using the GUI I load the plugin. I'm running in client/server mode, so load >> the plugin for both sides. I then load a custom data file using this >> plugin. An unstructured grid is generated and rendered, this works as >> expected. I then save the state. >> 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. So far, so good. >> For pvbatch I try running with the following script: >> ------------------ >> try: paraview.simple >> except: from paraview.simple import * >> servermanager.LoadPlugin('/home/insley/libMyCustomReader.so') >> servermanager.LoadState("/home/insley/my_state_flle.pvsm") >> curView = GetRenderView() >> SetActiveView(curView) >> curView.ViewSize = [1920, 1080] >> curView.StillRender() >> WriteImage("/home/insley/test_image.png") >> ----------------- >> 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. I see >> output from the RequestInformation() in my reader class, but I do not see >> anything from the RequestData() method. So it appears that RequestData() is >> never called, and the actual data is not being read from disk. Is there >> something additional that I need to do to cause that to be invoked? >> 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. >> A black image (of resolution 1920x1080) is saved to >> /home/insley/test_image.png >> Any insight that folks could provide would be much appreciated. >> Thanks, >> joe. >> >> =================================================== >> joseph a. insley >> ins...@mcs.anl.gov >> mathematics & computer science division >> argonne national laboratory >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://www.paraview.org/mailman/listinfo/paraview >> >> _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview