![]() To change the active connection one can do: When not present, the connection set as the ActiveConnection for the module, if any, is used. For most of such functions, the connection argument is optional. ![]() The paraview module provides function that take this connection object as an argument. The connection ID is accessible as (use print to see the value): All the above methods return a p圜onnection object which encapsulates the ConnectionID used by server manager as well as the meta data about the connection such as host name etc etc. To connect to a data-server and a render server, we do:Ĭonnection = paraview.Connect("data-server-hostname", 11111, "render-server-hostname, 22222)ġ112 are tcp/ip port ids and should be replaced by appropriate values. To create a built in connection, use connect with no arguments as follows:Ĭonnection = paraview.Connect("hostname", 11111) paraview module provides connect function to create built-in, server, as well as data-server-render-server connections. By default, there is no connection, hence the user must set up a connection first. The server connection can be a connection to an actual remove server or a builtin server. ParaView client cannot work without a server connection. Pvpython setups up the environment paths so that the paraview module is located automatically. ![]() To use paraview, simply import the paraview module. For the purposes of this document, unless otherwise stated, when we say pvpython we imply the pvpython interpretor or the python console in ParaView3 application. This is because the module does not include any server manager initialization which is essesential for the paraview client. One cannot simply import this module in the standard python interpretor. One has to use either the pvpython executable or the python console provided by the ParaView3 application to use this module. This documents the paraview module available for python programmers. An up-to-date document for the new servermanager module can be found here. The document below is for the deprecated paraview module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |