Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-14 Thread Tuan Ha Tran
To: Tuan Ha Tran tuan-ha.t...@insa-lyon.fr Cc: paraview@paraview.org Sent: Fri, 11 May 2012 19:32:08 +0200 (CEST) Subject: Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console You can create your own python plugin that will append the proper path in front of the provided name

Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-14 Thread Sebastien Jourdain
:32:08 +0200 (CEST) Subject: Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console You can create your own python plugin that will append the proper path in front of the provided name. === myPlugin.py === from paraview import simple def load(file): return simple.OpenDataFile

[Paraview] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-11 Thread Tuan Ha Tran
Hi everybody, I have a question to ask. I use ParaViewWeb JavaScript Console to load an image file to ParaViewWeb, I use the followed code var reader =paraview.OpenDataFile({filename:../NameOfFile}); I tried with the absolute path of my PC (which is normally not the good solution) and

Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-11 Thread Sebastien Jourdain
You can create your own python plugin that will append the proper path in front of the provided name. === myPlugin.py === from paraview import simple def load(file): return simple.OpenDataFile('/your-path/' + file) === In JS you'll do something like that var plugin =