[Paraview] ParaView and Python general questions

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Sep 14 13:32:34 EDT 2010


The ability to toggle center/orientation axes didn't make it into
3.8.1. You can either use the git-master (3.9) or wait for 3.10. In
3.9 onwards, the following should work:


RenderView1 = GetRenderView()
RenderView1.OrientationAxesVisibility = 1
RenderView1.CenterAxesVisibility = 1


Utkarsh


On Tue, Sep 14, 2010 at 12:53 PM, Milos Ilak <ilak at mech.kth.se> wrote:
> Hi Utkarsh,
>
> thanks for your reply. I got 3.8.1 to work easily on my MacBook and tracing
> works well. I found on the web that you fixed the bug 0008723, and I need to
> remove the center of rotation from my animations. I downloaded the latest
> 'nightly snapshot' using git, and copied the Python modules from there into
> the directory of my Mac binary, replacing the ones that come with the .dmg
> file. The removal or addition of the center of rotation still doesn't show
> in the trace though, and I haven't been able to find the new method in the
> python modules. Is it there, and how to find it? Thanks,
>
> Milos
>
>
>
> On Tue, Sep 14, 2010 at 3:14 PM, Utkarsh Ayachit
> <utkarsh.ayachit at kitware.com> wrote:
>>
>> ParaView has Python tracing capability which will make it easier for
>> you to dump Python scripts based on user-interface actions
>> (http://www.paraview.org/Wiki/Python_GUI_Tools). You might want to
>> wait for 3.8.1 (or try the release candidates) for better animation
>> support from Python.
>>
>> Utkarsh
>>
>> On Tue, Sep 14, 2010 at 8:21 AM, Milos Ilak <ilak at mech.kth.se> wrote:
>> > Hi,
>> >
>> > I am new to ParaView and not entirely new to Python. I have been trying
>> > to
>> > create Python scripts to automate some animations with volume rendering
>> > that
>> > I have been working on.
>> >
>> > I have found it very difficult to find out how to do various things from
>> > Python that are easily accessible from the main ParaView GUI. I haven't
>> > been
>> > able to find detailed documentation, except for the "ParaView Scripting
>> > with
>> > Python" document, and by looking at the properties of the Python modules
>> > using dir, help, etc, it is very hard to find out how some things are
>> > done
>> > and I have to admit that I am a bit lost. I was wondering if a more
>> > comprehensive guide than this document and the 'Python Recipes' page
>> > exists,
>> > or at least some guidelines on how to find out how things are done from
>> > the
>> > servermanager module.
>> >
>> > Some things I would like to do is for example to load a preset for the
>> > opacity function for volume rendering that I have created and saved
>> > using
>> > the GUI, to show/hide axes and the rotation center when rendering, etc.
>> >
>> > Also, I have read about some bugs being fixed (for example
>> > showing/hiding
>> > the center of the axes). In order to have those fixes, can I get an
>> > updated
>> > Python module and how? I am currently using Paraview 3.6.1., but should
>> > soon
>> > upgrade to 3.8.0.
>> >
>> > Thank you,
>> >
>> > Milos
>> >
>> >
>> > --
>> > Miloš Ilak
>> > Linné Flow Centre
>> > KTH Mechanics, Stockholm
>> > +46(0) 8 790-7152
>> > www2.mech.kth.se/~ilak
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.paraview.org/mailman/listinfo/paraview
>> >
>> >
>
>
>
> --
> Miloš Ilak
> Linné Flow Centre
> KTH Mechanics, Stockholm
> +46(0) 8 790-7152
> www2.mech.kth.se/~ilak
>
>
>


More information about the ParaView mailing list