[Paraview] Automating loading of binary files

Athanasios Anastasiou athanastasiou at gmail.com
Fri Dec 30 14:01:19 EST 2016


Hello Chuck

Thank you very much for the helpful response.

My version was the one that is available by default at the Trusty Tahr's
repositories (4.0.1) and in that one, there was no SetRepresentationType. I
tried with qDisplay.Representation="Volume" (following your formalism) but
no matter what I tried in that version, the minute I was switching the
representation the whole thing was coming down.

I downloaded the latest binary and it worked immediately.


All the best
AA

On 30 Dec 2016 14:29, "Chuck Atkins" <chuck.atkins at kitware.com> wrote:

>  Hi AA,
>
> 1) What is the best practice way to change the representation to Volume?
>> 2) To get the representation, I first allow paraview to create the object
>> and then look for it via its ID. Is there a way to retrieve it by name?
>>
>
> Show() returns the representation object that, if stored, you can use to
> set the volume representation:
>
> q = OpenDataFile("someFile.raw")
> ...
> qDisplay = Show()
> qDisplay.SetRepresentationType('Volume')
>
>
> ----------
> Chuck Atkins
> Staff R&D Engineer, Scientific Computing
> Kitware, Inc.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20161230/4ee32eb6/attachment.html>


More information about the ParaView mailing list