[Paraview-developers] How to get active session from a plugin ?

Sebastien Jourdain sebastien.jourdain at kitware.com
Fri Aug 7 09:10:31 EDT 2015


Hi Franck,

Try to add/edit those lines

spProxyIterator->SetModeToOneGroup();
spProxyIterator->Begin("sources");

You can find some useful code examples in Python within the following file
(look at line 1716):
=> ParaView-src/Web/Python/paraview/web/protocols.py

But you will have to follow those method calls to
ParaView-src/Wrapping/Python/paraview/servermanager.py to get the proper
C++ mapping.

Good luck,

Seb

On Fri, Aug 7, 2015 at 4:25 AM, houssen <houssen at ipgp.fr> wrote:

> Oh, yes !... :D Like often debug code is bugged himself.
> I wish all softwares could be bug-proof like THE one :
> http://bernardbelanger.com/computing/NaDa/index.php.
>
> Franck
>
>
> Le 2015-08-07 0:02, Ben Boeckel a écrit :
>
>> On Thu, Aug 06, 2015 at 23:48:26 +0200, houssen wrote:
>>
>>> 124           vtkObjectBase * pObj = pProxy -> GetClientSideObject ();
>>> 125           msg << "\n  Proxy client obj : " << pObj -> GetClassName
>>> ();
>>>
>>
>> According to the backtrace, pObj is NULL here. I can't remember off hand
>> what makes the CSO NULL though :/ .
>>
>> Le 2015-08-06 23:34, houssen a écrit :
>>> > (gdb) bt
>>> > #0  0x00007ffff1e3db76 in vtkObjectBase::GetClassName (this=0x0) at
>>>
>>
>> --Ben
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150807/71d2a95e/attachment-0001.html>


More information about the Paraview-developers mailing list