Here's a sample script:

from paraview.simple import *
pm = servermanager.vtkProcessModule.GetProcessModule()
pm.GetOptions().SetConnectID(13)

Utkarsh

On Thu, May 20, 2010 at 2:13 PM, Martin, Joel (Cont, ARL/CISD)
<joel.mart...@us.army.mil> wrote:
> Classification: UNCLASSIFIED
> Caveats: NONE
>
> I see that, but is it possible to set it _inside_ the script?  Right now, my 
> script doesn't know what the connection id will be until after the script has 
> started running.
> -Joel
>
>
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
> Sent: Thursday, May 20, 2010 2:03 PM
> To: Martin, Joel (Cont, ARL/CISD)
> Cc: paraview@paraview.org
> Subject: Re: [Paraview] connection id (UNCLASSIFIED)
>
> You can specify connect-id as a command line argument to pvpython or pvbatch:
>
>  ./bin/pvpython --connect-id=12 /tmp/foo.py
>
> Utkarsh
>
> On Thu, May 20, 2010 at 1:36 PM, Martin, Joel (Cont, ARL/CISD) 
> <joel.mart...@us.army.mil> wrote:
>> Classification: UNCLASSIFIED
>> Caveats: NONE
>>
>> I'm trying to connect to a server with pvpython and want to use the
>> --connect-id option.  Is it possible to set this inside my python
>> script?
>>
>> Thanks,
>> -Joel
>>
>>
>>
>> Classification: UNCLASSIFIED
>> Caveats: NONE
>>
>>
>> _______________________________________________
>> 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
>>
> Classification: UNCLASSIFIED
> Caveats: NONE
>
>
>
_______________________________________________
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