Hi all,

I'm new to the batch interface and trying to batch animations using
pvbatch. I have read the wiki and searched through the mailing list for
information, and found many useful answers. However, I'm stuck with two
questions:

i) The following script segfaults with the error message posted at the end
of this email. Any idea how to solve it?

#!/usr/local/bin/pvbatch

from paraview.simple import *

reader = PVDReader(FileName='vtkfiles/displacement.pvd')

scene = GetAnimationScene()
view = GetActiveView()

cue = servermanager.animation.KeyFrameAnimationCue()
cue.StartTime = 0.0
cue.EndTime = 1.0
cue.AnimatedProxy = view

keyf0 = servermanager.animation.CameraKeyFrame()
keyf0.KeyTime = 0.0
keyf1 = servermanager.animation.CameraKeyFrame()
keyf1.KeyTime = 1.0
cue.KeyFrames = [keyf0, keyf1]

movie = servermanager.animation.AnimationScene()
movie.ViewModules = [view]
movie.Cues.append(cue)

movieWriter = servermanager.vtkSMAnimationSceneImageWriter()
movieWriter.SetFrameRate(24)
movieWriter.SetFileName("movie.avi")
movieWriter.SetAnimationScene(movie.SMProxy)
movieWriter.Save()


ii) How can I add the warp by vector filter?

By the way, I'm using the standard 3.14.1 64-bit edition of Paraview on
Linux Mint Maya.

Here's the segfault output:

ERROR: In
/build/buildd/paraview-3.14.1/ParaViewCore/ClientServerCore/vtkPVCameraKeyFrame.cxx,
line 81
vtkPVCameraKeyFrame (0x2938dc0): This keyframe can only be added to
vtkPVCameraCueManipulator.

[maya:06239] *** Process received signal ***
[maya:06239] Signal: Segmentation fault (11)
[maya:06239] Signal code: Address not mapped (1)
[maya:06239] Failing at address: (nil)
[maya:06239] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f6d300de4a0]
[maya:06239] [ 1]
/usr/lib/paraview/libvtkPVServerManager.so(_ZN19vtkSMAnimationScene12TickInternalEddd+0x137)
[0x7f6d31b6baf7]
[maya:06239] [ 2]
/usr/lib/paraview/libvtkCommon.so.pv3.14(_ZN15vtkAnimationCue4TickEddd+0xa5)
[0x7f6d30a47175]
[maya:06239] [ 3]
/usr/lib/paraview/libvtkPVServerManager.so(_ZN25vtkSMAnimationSceneWriter4SaveEv+0x42)
[0x7f6d31b728d2]
[maya:06239] [ 4]
/usr/lib/paraview/libvtkPVServerManagerPythonD.so(+0x53775) [0x7f6d08427775]
[maya:06239] [ 5] /usr/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x53a5)
[0x7f6d25e49845]
[maya:06239] [ 6] /usr/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855)
[0x7f6d25e14605]
[maya:06239] [ 7] /usr/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)
[0x7f6d25e14932]
[maya:06239] [ 8] /usr/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0xb0)
[0x7f6d25e15740]
[maya:06239] [ 9]
/usr/lib/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xdf) [0x7f6d25e15b8f]
[maya:06239] [10] /usr/lib/libpython2.7.so.1.0(Py_Main+0xbdc)
[0x7f6d25e179cc]
[maya:06239] [11]
/usr/lib/paraview/pvbatch(_ZN14ParaViewPython3RunEiiPPc+0x119) [0x4017e9]
[maya:06239] [12] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)
[0x7f6d300c976d]
[maya:06239] [13] /usr/lib/paraview/pvbatch() [0x401471]
[maya:06239] *** End of error message ***
Segmentation fault (core dumped)

Thanks for all help, really appreciated!

--
Morten
_______________________________________________
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

Reply via email to