[Paraview] Python Scripting - Acess vtkOpenGL cameras from .pvx files information
Léo Pessanha
leonardopessanha74 at gmail.com
Mon Oct 23 09:20:32 EDT 2017
Hi!
I would like to know if there's a way to acess the information/attributes
of the cameras there are created trough a .pvx file
To acess the attributes in the camera of the active Layout/RenderView I do:
1 - Open Python Shell
2 - camera = GetActiveCamera()
3 - print(camera)
And the output is:
vtkOpenGLCamera (0x4a45e80)
Debug: Off
Modified Time: 405029
Reference Count: 5
Registered Events:
Registered Observers:
(none)
ClippingRange: (1.63277, 5.56498)
DirectionOfProjection: (0.526409, 0.492965, -0.692733)
Distance: 3.37001
EyeAngle: 2
FocalDisk: 1
FocalPoint: (0, 0, 0)
ViewShear: (0, 0, 1)
ParallelProjection: Off
ParallelScale: 0.872667
Position: (-1.77401, -1.6613, 2.33452)
Stereo: Off
Left Eye: 1
Thickness: 3.93221
ViewAngle: 30
UseHorizontalViewAngle: 0
UserTransform: (none)
(none)
FreezeFocalPoint: (none)
ViewPlaneNormal: (-0.526409, -0.492965, 0.692733)
ViewUp: (-0.0865543, 0.841596, 0.533127)
WindowCenter: (0, 0)
UseOffAxisProjection: (0)
ScreenBottomLeft: (-0.5, -0.5, -0.5)
ScreenBottomRight: (0.5, -0.5, -0.5)
ScreenTopRight: (0.5, 0.5, -0.5)
EyeSeparation: (0.06)
WorldToScreenMatrix: (0x4a457c0
Debug: Off
Modified Time: 155883
Reference Count: 1
Registered Events: (none)
Elements:
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
)
EyeTransformMatrix: (0x4a458b0
Debug: Off
Modified Time: 155885
Reference Count: 1
Registered Events: (none)
Elements:
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
)
ModelTransformMatrix: (0x4a459a0
Debug: Off
Modified Time: 155887
Reference Count: 1
Registered Events: (none)
Elements:
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
)
ProjectionTransform: (0x4a46280
Debug: Off
Modified Time: 405415
Reference Count: 1
Registered Events: (none)
Inverse: (0)
Matrix: (0x4a46330)
Debug: Off
Modified Time: 405416
Reference Count: 1
Registered Events: (none)
Elements:
3.76067 0 0 0
0 3.73205 0 0
0 0 -1.83046 -4.62147
0 0 -1 0
Input: (0)
InverseFlag: 0
NumberOfConcatenatedTransforms: 1
0: vtkSimpleTransform at 0x6ecdae0
)
*How to get these informations of the cameras created from a .pvx file?*
Thanks in advance,
Leonardo Pessanha
Laboratory of Computational Methods in Engineering
Federal University of Rio de Janeiro - COPPE
Rio de Janeiro, RJ, Brasil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171023/c58cd277/attachment.html>
More information about the ParaView
mailing list