[Paraview] Animating camera in batch mode

Adriano Gagliardi agagliardi at ara.co.uk
Fri Sep 3 08:48:37 EDT 2010


Thanks, Jean. I didn't actually check servermanager.animation options to see
what was available. 

Regards,

Adriano


===================================

Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk 

-----Original Message-----
From: Favre Jean [mailto:jfavre at cscs.ch] 
Sent: 03 September 2010 13:35
To: agagliardi at ara.co.uk; paraview at paraview.org
Subject: RE: [Paraview] Animating camera in batch mode


________________________________________


I would like to be able to orientate the camera whilst running batch scripts
for generating animations, as you can do in interactive mode. However, I'm
stuck on what to use for the AnimatedProxy. I tried the following and I get
an error message:

#move camera
keyc1 = servermanager.animation.CompositeKeyFrame()
keyc1.Interpolation = "Ramp"
keyc1.KeyTime = 0
keyc1.KeyValues = [0,0,0]
keyc2 = servermanager.animation.CompositeKeyFrame()
keyc2.KeyTime = 1.0
keyc2.KeyValues = [0.1,0,0]

cue2 = servermanager.animation.KeyFrameAnimationCue()
cue2.AnimatedProxy = GetRenderView()
cue2.AnimatedPropertyName = "CameraPosition"
cue2.KeyFrames = [keyc1,keyc2]

ERROR: In
/usr/people/gagliard/Paraview/FILES/ParaView3-Original/Servers/ServerManager
/vtkSMRampKeyFrameProxy.cxx, line 53
vtkSMRampKeyFrameProxy (0x2aac712b3770): Cue does not have domain or
property set!
________________________________________

May I suggest to use the following:

cue2 = servermanager.animation.CameraAnimationCue()
keyc1 = servermanager.animation.CameraKeyFrame()
keyc2 = servermanager.animation.CameraKeyFrame()

keyc1.ListProperties() will give you all the properties you can animate;

['ClosedFocalPath', 'ClosedPositionPath', 'FocalPathPoints', 'FocalPoint',
'FocalPointMode', 'KeyTime', 'KeyValues', 'ParallelScale', 'Position',
'PositionMode', 'PositionPathPoints', 'ViewAngle', 'ViewUp']

The rest is up to you.
-----------------
Jean M. Favre
Swiss National Supercomputing Center


**********************************************************************
This email contains information that is private and confidential and is intended only for the addressee.
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245

**********************************************************************


More information about the ParaView mailing list