[Paraview] Default Options in Export Scene

Cory Quammen cory.quammen at kitware.com
Mon Aug 4 15:11:48 EDT 2014


David,

The second JSON should be correct. However, these particular settings
are currently ignored in the Export Options dialog. I'll fix that.

One more thing: I changed the blog post to update the location of this
settings file, which should be
~/.config/ParaView/ParaView-UserSettings.json.

Thanks,
Cory

On Mon, Aug 4, 2014 at 2:50 PM, David Hyde <dabh at stanford.edu> wrote:
> Thanks for the replies!  Seb, I tried to record a macro for setting the options I want (via Tools->Start/Stop Trace), but nothing substantive got recorded in the resulting generated Python script.  Can these options (e.g., "Rasterize 3D Geometry") be changed via a macro, and if so, any tips on how to set that up?
>
> Cory, it's good to hear 4.2 will support custom defaults as described in the blog post - looks good!  In the meantime, I followed a link on that blog post to http://kitware.com/blog/home/post/672 , which discusses changing default values by editing ~/.config/ParaView/UserSettings.json .  I looked in the ParaView source at ParaView/ParaViewCore/ServerManager/SMApplication/Resources/utilities.xml and found the properties that I wanted to change.  So I wrote the following UserSettings.json:
>
> {
>         "utilities" : {
>                 "exporters" : {
>                         "GL2PSExporterBase" : {
>                                 "SetTitle" : "",
>                                 "SetOcclusionCull" : 0
>                         },
>                         "GL2PSRenderViewExporterBase" : {
>                                 "SetSort" : 2,
>                                 "Write3DPropsAsRasterImage" : 0
>                         }
>                 }
>         }
> }
>
> However, when I opened up ParaView after saving this file, the settings I'd specified were not picked up.  I also tried:
>
> {
>         "exporters" : {
>                 "GL2PSExporterBase" : {
>                         "SetTitle" : "",
>                         "SetOcclusionCull" : 0
>                 },
>                 "GL2PSRenderViewExporterBase" : {
>                         "SetSort" : 2,
>                         "Write3DPropsAsRasterImage" : 0
>                 }
>         }
> }
>
> but got the same (no) effect.  Are these settings changeable via JSON like I'm trying to do?  If so, I would greatly appreciate your help in debugging my JSON and figuring out what's going wrong.
>
> Thanks again!
>
> David
>
> ----- Original Message -----
> From: "Cory Quammen" <cory.quammen at kitware.com>
> To: "D H" <mrhyde at stanford.edu>
> Cc: "ParaView" <paraview at paraview.org>
> Sent: Monday, August 4, 2014 10:03:33 AM
> Subject: Re: [Paraview] Default Options in Export Scene
>
> Hi David,
>
> We are currently working on making it possible to set custom default
> values throughout ParaView, and will target the Export Scene settings
> for the ParaView 4.2 release.
>
> For an idea of what this will look like, please see
> http://www.kitware.com/blog/home/post/702.
>
> Thanks,
> Cory
>
> On Mon, Aug 4, 2014 at 3:17 AM, D H <mrhyde at stanford.edu> wrote:
>> Hi all,
>>
>> I have been using File->Export Scene a lot lately to generate EPS/PDF figures.  For all of the figures I've been generating, I've wanted to use the same (non-default, advanced) export settings.  So each time I export a scene, I find myself clicking four or five buttons to get the correct settings, which gets a bit annoying after the tenth or twentieth image.
>>
>> Of course, this inconvenience isn't too bad, but it would be very cool if there were a way to change the default settings for Export Scene.  Or at least have PV remember/default to the last export settings I used, across different instances of the program?  I looked and did not find a way to do this already - if this is already a feature and I'm just missing something, I would be grateful for anybody to point out the obvious thing I'm missing.  Otherwise, maybe it would be possible to have this considered as a feature request for the next PV release?
>>
>> Thanks very much!
>>
>> David
>>
>> _______________________________________________
>> 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://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list