<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;">Hi Aron and all,<br><br>Following this discussion....<br><br>For what I can see, all the session state is stored in a variable called "State" inside Internals of vtkSMSessionProxyManager (vtkSMSessionProxyManagerInternals). This State is of type vtkSMMessage, which is a typedef of <strong>paraview_protobuf::Message</strong>.<br><br>In other words, the state of the whole session is stored as a generated protobuf class (or package), which is defined in vtkPVMessage.proto. I guess this make sense as -- I image -- this makes read/write from a flat XML much easier (as well as transferring from client-to-server and vice versa). It would be great if someone with more knowledge on these details can clarify that I am in fact correct...<br><br>Cheers,<br>Eduardo.<br><br>September 26, 2017 10:33 AM, "Aron Helser" <<a tabindex="-1" href="mailto:%22Aron%20Helser%22%20<aron.helser@kitware.com>" target="_blank">aron.helser@kitware.com</a>> wrote:<br> <blockquote><div><div> <div dir="ltr">Hi Eduardo,<div>I think you've basically got it, but the state is more complicated than you think. Basically everything has a vtkSMProxy, and those proxies contain the state of the pipeline, representation, and views. Anything that is modified from the defaults gets saved in the state file. The <span style="font-size: 13px">vtkSMSessionProxyManager is the root of a session, as you've found.</span> </div> <div>The input data is saved in the state file as absolute paths, and you do need the input data. When you read state, it has that intelligent option to search for the data files in another directory...</div> <div></div> <div>I've just been learning this stuff trying to add dynamic lights to ParaView, so hopefully I'm close :)</div> <div></div> <div>HTH, Regards,</div> <div>Aron</div> </div> <div> <div>On Tue, Sep 26, 2017 at 12:33 PM, <span dir="ltr"><<a tabindex="-1" href="mailto:eduardo@berrocal.info" target="_blank" rel="external nofollow noopener noreferrer">eduardo@berrocal.info</a>></span> wrote:<br><br> <blockquote style="margin: 0 0 0 .8ex;border-left: 1px #ccc solid;padding-left: 1ex"> <div><div style="font-family: arial,sans-serif;font-size: 13px"><div style="display: block"><div><div><div style="font-family: arial,sans-serif;font-size: 13px">Hello list,<br><br>Where is the data structure(s) in the code where all the objects for <em><strong>the state</strong></em> of a particular ParaView session are kept while it is running?. I have been reading the code, and I think it should be in the "internals" of vtkSMSessionProxyManager, but I am unsure. As far as I understand, the state (which can be saved to XML) is all it takes to recreate a session (Am I right here? Probably you need the input data as well, right?).<br><br>Thanks for the help!,<br>Eduardo.<br><br>P.S.: Are my emails going to SPAM? Can someone respond ("hi") to this email to confirm otherwise? Thanks !.</div></div></div></div></div></div> <br>______________________________<wbr></wbr>_________________<br>Powered by <a tabindex="-1" href="http://www.kitware.com" target="_blank" rel="external nofollow noopener noreferrer">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a tabindex="-1" href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="external nofollow noopener noreferrer">http://www.kitware.com/<wbr></wbr>opensource/opensource.html</a><br><br>Please keep messages on-topic and check the ParaView Wiki at: <a tabindex="-1" href="http://paraview.org/Wiki/ParaView" target="_blank" rel="external nofollow noopener noreferrer">http://paraview.org/Wiki/<wbr></wbr>ParaView</a><br><br>Search the list archives at: <a tabindex="-1" href="http://markmail.org/search/?q=ParaView" target="_blank" rel="external nofollow noopener noreferrer">http://markmail.org/search/?q=<wbr></wbr>ParaView</a><br><br>Follow this link to subscribe/unsubscribe:<br><a tabindex="-1" href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank" rel="external nofollow noopener noreferrer">http://public.kitware.com/<wbr></wbr>mailman/listinfo/paraview</a><br> </blockquote> </div> </div> </div></div></blockquote> <signature></signature><br> </div></body></html>