Hi Seb,

Thanks very much for your help.
I'm trying to open a vtk file by modifying the sample code. Could you
please help me to understand following code:
pv.connection.session.call("pv:openFileFromPath",
filePath).then(function(reply){pv.viewport.render();});

1. After connecting to a session, methods such as pv:openFileFromPath and
vtk:render can be called. But I don't know where to find those methods, I
only got these two from examples.
2. Where is the session defined? I want to know how does session function
works.

Best wishes,
Junyi Han


2013/11/15 Sebastien Jourdain <[email protected]>

> Hi Junyi,
>
> That specific sample application expect a session manager to automatically
> start a new python process for each visualization.
>
> If you run an existing web application, you can only load its
> corresponding web page.
>
> Hope that make sense,
>
> Seb
>
> On Nov 14, 2013, at 21:07, Junyi Han <[email protected]> wrote:
>
> Hi all,
>
> I start up a python http server and try to test samples as shown on the
> front page of wiki. But I got a 404 error as follow:
> 2013-11-14 22:51:30-0500 [HTTPChannel,4,127.0.0.1] 127.0.0.1 - -
> [15/Nov/2013:03:51:30 +0000] "POST */paraview* HTTP/1.1" 404 145 "
> http://localhost:8080/apps/LiveArticles/embed.html?data=can.ex2";
> "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/30.0.1599.66 Safari/537.36"
>
> I don't find a directory called *paraview* under ../../paraview-4.0/www
> but it's used as parameter of POST command. Did I don something wrong?
>
> Best wishes,
> Junyi Han
>
>
_______________________________________________
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

Reply via email to