OK, I tried it, but it doesn't work. I get the following output<br><br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(0, 0, 0);">RenderView1 = GetRenderView()</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(0, 0, 0);">>>> RenderView1.OrientationAxesVisibility = 0</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(255, 0, 0);">Traceback (most recent call last):</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(255, 0, 0);"> File "<console>", line 1, in ?</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(255, 0, 0);"> File "/Applications/ParaView 3.8.1-RC1.app/Contents/Python/paraview/servermanager.py", line 207, in __setattr__</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(255, 0, 0);"> raise AttributeError("Attribute %s does not exist. " % name +</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 13pt; color: rgb(255, 0, 0);">AttributeError: Attribute OrientationAxesVisibility does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.</span></p>
<br><br>I am sure that I have the latest module; I double-checked with git that I have the master (and I copied the module again).<br><br>Milos<br><div class="gmail_quote">On Tue, Sep 14, 2010 at 7:32 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">The ability to toggle center/orientation axes didn't make it into<br>
3.8.1. You can either use the git-master (3.9) or wait for 3.10. In<br>
3.9 onwards, the following should work:<br>
<br>
<br>
RenderView1 = GetRenderView()<br>
RenderView1.OrientationAxesVisibility = 1<br>
RenderView1.CenterAxesVisibility = 1<br>
<font color="#888888"><br>
<br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
<br>
On Tue, Sep 14, 2010 at 12:53 PM, Milos Ilak <<a href="mailto:ilak@mech.kth.se">ilak@mech.kth.se</a>> wrote:<br>
> Hi Utkarsh,<br>
><br>
> thanks for your reply. I got 3.8.1 to work easily on my MacBook and tracing<br>
> works well. I found on the web that you fixed the bug 0008723, and I need to<br>
> remove the center of rotation from my animations. I downloaded the latest<br>
> 'nightly snapshot' using git, and copied the Python modules from there into<br>
> the directory of my Mac binary, replacing the ones that come with the .dmg<br>
> file. The removal or addition of the center of rotation still doesn't show<br>
> in the trace though, and I haven't been able to find the new method in the<br>
> python modules. Is it there, and how to find it? Thanks,<br>
><br>
> Milos<br>
><br>
><br>
><br>
> On Tue, Sep 14, 2010 at 3:14 PM, Utkarsh Ayachit<br>
> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> ParaView has Python tracing capability which will make it easier for<br>
>> you to dump Python scripts based on user-interface actions<br>
>> (<a href="http://www.paraview.org/Wiki/Python_GUI_Tools" target="_blank">http://www.paraview.org/Wiki/Python_GUI_Tools</a>). You might want to<br>
>> wait for 3.8.1 (or try the release candidates) for better animation<br>
>> support from Python.<br>
>><br>
>> Utkarsh<br>
>><br>
>> On Tue, Sep 14, 2010 at 8:21 AM, Milos Ilak <<a href="mailto:ilak@mech.kth.se">ilak@mech.kth.se</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I am new to ParaView and not entirely new to Python. I have been trying<br>
>> > to<br>
>> > create Python scripts to automate some animations with volume rendering<br>
>> > that<br>
>> > I have been working on.<br>
>> ><br>
>> > I have found it very difficult to find out how to do various things from<br>
>> > Python that are easily accessible from the main ParaView GUI. I haven't<br>
>> > been<br>
>> > able to find detailed documentation, except for the "ParaView Scripting<br>
>> > with<br>
>> > Python" document, and by looking at the properties of the Python modules<br>
>> > using dir, help, etc, it is very hard to find out how some things are<br>
>> > done<br>
>> > and I have to admit that I am a bit lost. I was wondering if a more<br>
>> > comprehensive guide than this document and the 'Python Recipes' page<br>
>> > exists,<br>
>> > or at least some guidelines on how to find out how things are done from<br>
>> > the<br>
>> > servermanager module.<br>
>> ><br>
>> > Some things I would like to do is for example to load a preset for the<br>
>> > opacity function for volume rendering that I have created and saved<br>
>> > using<br>
>> > the GUI, to show/hide axes and the rotation center when rendering, etc.<br>
>> ><br>
>> > Also, I have read about some bugs being fixed (for example<br>
>> > showing/hiding<br>
>> > the center of the axes). In order to have those fixes, can I get an<br>
>> > updated<br>
>> > Python module and how? I am currently using Paraview 3.6.1., but should<br>
>> > soon<br>
>> > upgrade to 3.8.0.<br>
>> ><br>
>> > Thank you,<br>
>> ><br>
>> > Milos<br>
>> ><br>
>> ><br>
>> > --<br>
>> > Miloš Ilak<br>
>> > Linné Flow Centre<br>
>> > KTH Mechanics, Stockholm<br>
>> > +46(0) 8 790-7152<br>
>> > <a href="http://www2.mech.kth.se/%7Eilak" target="_blank">www2.mech.kth.se/~ilak</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> ><br>
>> ><br>
><br>
><br>
><br>
> --<br>
> Miloš Ilak<br>
> Linné Flow Centre<br>
> KTH Mechanics, Stockholm<br>
> +46(0) 8 790-7152<br>
> <a href="http://www2.mech.kth.se/%7Eilak" target="_blank">www2.mech.kth.se/~ilak</a><br>
><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888"><div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<div><span>Miloš Ilak</span></div><div>Linné Flow Centre</div><div>KTH
Mechanics, Stockholm </div><div>+46(0) 8 790-7152</div><div><a href="http://www2.mech.kth.se/%7Eilak/" target="_blank">www2.mech.kth.se/~<span>ilak</span></a><br><br></div></div></span></span>
</div></font><br>