[Paraview] Referring to render views without creating a separate variable for each one

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Jul 17 11:59:43 EDT 2017


You have access to a function called `GetViews` which will return a list of
all views currently present. If that what you're looking for?

On Mon, Jul 17, 2017 at 10:43 AM, Amine Aboufirass <
Amine.Aboufirass at deltares.nl> wrote:

> Hello,
>
> How do I select a render view within a layout without necessarily having
> to declare a new variable to hold it? In the python stack trace I am
> getting something like this:
>
> SetActiveView(renderView1_2)
>
> Where renderView1_2 is previously defined as:
>
> renderView1_2 = CreateView(‘RenderView’)
>
> I am planning to develop something that can create multiple Render views
> and jump from one to another in a loopwise fashion. This would only be
> possible for a method where the views can be referred to by list number for
> example. It would be tedious or not possible for the above construct.
>
> Any ideas most welcome. Thanks for your help.
>
> Regards,
>
>
>
> Amine
>
>
> DISCLAIMER: This message is intended exclusively for the addressee(s) and
> may contain confidential and privileged information. If you are not the
> intended recipient please notify the sender immediately and destroy this
> message. Unauthorized use, disclosure or copying of this message is
> strictly prohibited. The foundation 'Stichting Deltares', which has its
> seat at Delft, The Netherlands, Commercial Registration Number 41146461, is
> not liable in any way whatsoever for consequences and/or damages resulting
> from the improper, incomplete and untimely dispatch, receipt and/or content
> of this e-mail.
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170717/2024a781/attachment.html>


More information about the ParaView mailing list