I am trying to use the clipping tool with python and I feel like I have the correct set up for this, however every time I run my script the times for the animation track of the clip are off. this is what I want:
# get animation scene
animationScene1 = GetAnimationScene()
# get animation track
clip1ClipTypeOriginTrack = GetAnimationTrack('Origin', 0, proxy=clip1.ClipType)
# create keyframes for this animation track
# create a key frame
keyframe1 = CompositeKeyFrame()
keyframe1.Interpolation = 'Ramp'
keyframe1.KeyTime = [-.62] #start time of clip
keyframe1.KeyValues = [0] # starting pt. of clip
#renderView1.Update()
# create a key frame
keyframe2 = CompositeKeyFrame()
keyframe2.Interpolation = 'Ramp'
keyframe2.KeyTime = [0.0] #end time of clip in sec.
keyframe2.KeyValues = [float(a[j-1][7])]
#renderView1.Update()
# initialize the animation track
clip1ClipTypeOriginTrack.KeyFrames = [keyframe1, keyframe2]
# get display properties
clip1Display = GetDisplayProperties(clip1, view=renderView1)
but when it loads on Paraview, I get this:
It is not giving me the correct values that I assigned for the KeyTimes and when I change the start time to -.62, it assigns that value to the KeyValue of [float(a[j-1][7])] instead of 0 like I would like.
If anyone knows what might be going on, any help is greatly appreciated.
The key times change to different values when I manually change the start time on the animation view.
PLS& THANKYOU!!!