Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-12-21 Thread Grothausmann, Roman Dr.
Hi Cory, On 06/12/17 23:06, Cory Quammen wrote: Sorry I failed to follow up. Did you find a solution to this problem? Many thanks for your reply. No, and I'm still stuck. I tried Your suggestion to remove [0]

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-12-06 Thread Cory Quammen
Hi Roman, Sorry I failed to follow up. Did you find a solution to this problem? This line in your script looks funny to me: d[props] = pvs.GetProperty(repr, props[0]) Shouldn't props[0] just be props? Thanks, Cory On Fri, Nov 10, 2017 at 10:28 AM, Grothausmann, Roman Dr.

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-11-10 Thread Grothausmann, Roman Dr.
Dear Cory, On 15/09/17 15:27, Grothausmann, Roman Dr. wrote: On 15/09/17 15:14, Cory Quammen wrote: Put a ** in front of reppro[i], e.g., pvs.SetProperties(repr, **reppro[i]) Hm, I now get: TypeError: SetProperties() argument after ** must be a mapping, not list Do I have to store the dict

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-15 Thread Cory Quammen
On Fri, Sep 15, 2017 at 9:27 AM, Grothausmann, Roman Dr. wrote: > Dear Cory, > > Many thanks for Your quick reply. > On 15/09/17 15:14, Cory Quammen wrote: >> >> Put a ** in front of reppro[i], e.g., >> >> pvs.SetProperties(repr, **reppro[i]) >> >> That works

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-15 Thread Grothausmann, Roman Dr.
Dear Cory, Many thanks for Your quick reply. On 15/09/17 15:14, Cory Quammen wrote: Put a ** in front of reppro[i], e.g., pvs.SetProperties(repr, **reppro[i]) That works for me. Hm, I now get: TypeError: SetProperties() argument after ** must be a mapping, not list Do I have to store the

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-15 Thread Cory Quammen
On Fri, Sep 15, 2017 at 8:09 AM, Grothausmann, Roman Dr. wrote: > Dear Cory, > > > Many thanks for your reply pointing out the known limitations and > suggestions for restoring with python. I tried to give that a try: >

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-15 Thread Grothausmann, Roman Dr.
Dear Cory, Many thanks for your reply pointing out the known limitations and suggestions for restoring with python. I tried to give that a try: https://github.com/romangrothausmann/ParaView_scripts/blob/146aa352d1a3ada203bcf91d17e11c169bc99583/pvsm-multi.py#L44-L61 but am stuck at the python

Re: [Paraview] loading multiple state-files without hiding and resetting already loaded objects

2017-09-07 Thread Cory Quammen
Hi Roman, It turns out ParaView was not designed for this use case because of certain difficulties discussed here: https://gitlab.kitware.com/paraview/paraview/issues/17442 In your Python script, you could manually cash all the properties of the existing representations and restore them after