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
: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
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
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 =