[Paraview] paraview to kiwi macro

Pat Marion pat.marion at kitware.com
Wed Jun 19 15:16:44 EDT 2013


Great!  Thank you for reporting the issues, that was very helpful for
improving the script.

Pat


On Wed, Jun 19, 2013 at 3:14 PM, petrinic <petrinic at student.ethz.ch> wrote:

> Hi, now it works perfectly!
> Thank you for your help!
>
> All the best
>
> Claudio
>
> From: Pat Marion <pat.marion at kitware.com>
> Date: Wed, 19 Jun 2013 14:37:49 -0400
> To: Claudio Petrini <petrinic at student.ethz.ch>, ParaView <
> paraview at paraview.org>
>
> Subject: Re: [Paraview] paraview to kiwi macro
>
> Hi, sorry about that!  It's another typo in the script, this time the typo
> is only exposed if you have camera parallel projection enabled (instead of
> perspective projection).  I uploaded a new version of the script that
> corrects the typo, so please re-download:
>
> http://packages.kitware.com/item/3021
>
> However, KiwiViewer will set the view projection to perspective by
> default, not parallel projection, so if you set the camera position in
> paraview using parallel projection then the camera position might not be
> optimal in KiwiViewer's perspective, so I would recommend that you setup
> your view with perspective mode before exporting.
>
> Pat
>
>
> On Wed, Jun 19, 2013 at 2:25 PM, petrinic <petrinic at student.ethz.ch>wrote:
>
>> Hi Pat,
>> Thank you for the advice! Yes I'm using the Paraview version 4.0 and I
>> changed the line 179 as you said. Now it gives me an other error:
>>
>> >>> exporting to /Users/claudiop/Desktop/PVExport-2013-06-19T20:20:15
>>
>> Traceback (most recent call last):
>>
>> File "<string>", line 202, in <module>
>>
>> File "<string>", line 192, in exportToDesktop
>>
>> File "<string>", line 179, in exportInDirectory
>>
>> File "<string>", line 126, in exportViewToDirectory
>>
>> File "<string>", line 31, in cameraProperties
>>
>> TypeError: 'float' object is not iterable
>>
>>
>> It is another bug in the script or I'm doing something wrong? Can you
>> help me again with this problem?
>>
>> Thank you
>>
>> All the best
>>
>>
>> Claudio
>>
>>
>>
>>  From: Pat Marion <pat.marion at kitware.com>
>> Date: Wed, 19 Jun 2013 12:50:57 -0400
>> To: Claudio Petrini <petrinic at student.ethz.ch>
>> Cc: ParaView <paraview at paraview.org>
>> Subject: Re: [Paraview] paraview to kiwi macro
>>
>> Hi Claudio,
>>
>> Thanks for reporting this issue.  It's a bug in the script, I think it
>> might only be an issue if using the script in ParaView 4.0, is that the
>> version you are using?  Anyway, to correct it, please edit line 179 and
>> change:
>>
>>     exportViewToDirectory(GetRenderView(), outDir)
>>
>> to
>>
>>     exportViewToDirectory(smp.GetRenderView(), outDir)
>>
>> I will upload a new version of the script, too, with this correction.
>>
>> Pat
>>
>>
>> On Wed, Jun 19, 2013 at 12:36 PM, petrinic <petrinic at student.ethz.ch>wrote:
>>
>>> Hi,
>>> I'm trying to export paraview data to my Desktop with the macro
>>> "paraview_to_kiwi.py", so that I can put it on Kiwiviewer on my iPhone.
>>> When I start macro it doesn't work, and in the Phyton shell I have this
>>> output:
>>>
>>> >>> exporting to /Users/claudiop/Desktop/PVExport-2013-06-19T18:33:23
>>>
>>> Traceback (most recent call last):
>>>
>>>  File "<string>", line 202, in <module>
>>>
>>>  File "<string>", line 192, in exportToDesktop
>>>
>>>  File "<string>", line 179, in exportInDirectory
>>>
>>> NameError: global name 'GetRenderView' is not defined
>>>
>>>
>>>
>>> Does anyone have an Idea how to solve this problem and make it works?
>>> Thank you
>>> All the best,
>>>
>>> Claudio
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130619/0e3a4b05/attachment.htm>


More information about the ParaView mailing list