[Paraview] Python: Save Screenshot in parallel projection

Cory Quammen cory.quammen at kitware.com
Wed Jul 15 09:59:46 EDT 2015


Jonas,

What version of ParaView are you using? I am using the latest master branch
and saving a screenshot of with parallel projection seems to work fine on
this version.

Thanks,
Cory

On Mon, Jul 13, 2015 at 7:10 AM, Jonas Asche via ParaView <
paraview at paraview.org> wrote:

> Hello, when i try to switch to parallel projection on in my script i can
> only save a screenshot with parallel projection disabled:
>
> self.__getView().CameraParallelProjection = 1
> self.__getView().CameraParallelScale = 1.0
> self.__getView().CameraViewUp = [0.0, 0.0, 1.0]
> self.__getView().CameraPosition = camdirection[axis]
> self.__getView().CameraFocalPoint = [0.0, 0.0, 33.32500076293945]
> self.__getView().CameraClippingRange = [154.56988142373606, 215.9545612783452]
>
> SaveScreenshot(str(self.__getConfig().get("save", "path") + 'img-') + str(axis) + "-" + str(distribution) + '.png', self.__getView())
>
> When when i print out the parallel scale AFTER savin the screenshot it is set to 46.6471043813.
>
>
> is this the same bug like here: http://paraview.org/Bug/view.php?id=7466
>
> ?
>
> Is there a workaround or am i doing something wrong?
>
> Thanks,
>
> Jonas
>
>
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150715/023b1bac/attachment.html>


More information about the ParaView mailing list