Re: [Paraview] load plugin through python scripts

2016-08-12 Thread 曹智选
The problem is still not solved. I added ns=globals() and tried both remote=False and remote=True. Neither of them works. The same error message persist: Plot[plotname] = H5PartReader(FileName=maindirectory+subdirectory+name) NameError: global name 'H5PartReader' is not defined 2) I also tried to

Re: [Paraview] load plugin through python scripts

2016-08-12 Thread Sebastien Jourdain
you need to provide your globals to LoadPlugin, so it can add H5PartReader into the main scope. Otherwise, you will need to use the full path which should be something along that servermanager.sources.H5PartReader def LoadPlugin(filename, remote=True, ns=None): """Loads a ParaView plugin an

Re: [Paraview] load plugin through python scripts

2016-08-12 Thread 曹智选
No, I have this in the scripts. 2016-08-11 19:52 GMT-04:00 Sebastien Jourdain < sebastien.jourd...@kitware.com>: > Are you missing? > > from paraview.simple import * > > On Thu, Aug 11, 2016 at 4:10 PM, 曹智选 wrote: > >> Hi, >> I am trying to write a python scripts to "visualize" simulation result

Re: [Paraview] load plugin through python scripts

2016-08-11 Thread Sebastien Jourdain
Are you missing? from paraview.simple import * On Thu, Aug 11, 2016 at 4:10 PM, 曹智选 wrote: > Hi, > I am trying to write a python scripts to "visualize" simulation results. > > I need load a plugin through GUI of paraview before opening data. If I > first load plugin in the GUI and then run my p

[Paraview] load plugin through python scripts

2016-08-11 Thread 曹智选
Hi, I am trying to write a python scripts to "visualize" simulation results. I need load a plugin through GUI of paraview before opening data. If I first load plugin in the GUI and then run my python scripts through Paraview GUI -> tools ->python shell, it works well. To load plugin in python scri