[Paraview] ParaViewWeb JS API: get camera position

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue Dec 1 11:15:52 EST 2015


I don't see any but you can add your own method such as

    @exportRpc("viewport.camera.get")
    def getCamera(self, view_id):
        view = self.getView(view_id)
        return {
            focal: view.CameraFocalPoint,
            up: view.CameraViewUp,
            position: view.CameraPosition
        }



On Mon, Nov 30, 2015 at 5:06 PM, David Allen <
david.allen at meliorinnovations.com> wrote:

> I have been using the JavaScript API to set the camera position by calling
> updateCamera() (registered as “viewport.camera.update”).  However, now I
> would like to get the camera position after mouse events, etc.  Is this
> possible through the JavaScript API?  I couldn’t find it in the docs.
>
> Thanks,
> Dave
> This e-mail is covered by the Electronic Communication Privacy Act, 18
> U.S.C. Section 2510-2521 and may be legally privileged. If you have
> received this transmission in error, please notify the original sender
> immediately by return e-mail or by telephone at the telephone number
> provided above and delete/trash the original message from your system.
> Thank you for your assistance. The information contained herein is
> confidential information provided only for the use of the individual or
> entity for whom it was intended. If the reader of this message received it
> in error, is not the intended recipient, or if an attachment is made in
> error, the reader is hereby notified that any dissemination, distribution
> or copying of this communication is strictly prohibited.
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151201/e23d9485/attachment.html>


More information about the ParaView mailing list