-ScaleVector1.ScaleFactor = 0
-ScaleVector1.UpdatePipeline()
-bounds = info.DataInformation.GetBounds()
-side = [bounds[1] - bounds[0], bounds[3] - bounds[2], bounds[5] - bounds[4]]
-length = side[0]
-if side[1] > length : length = side[1]
-if side[2] > length : length = side[2]
-
-scale = length / 20
-if vectorname != None :
- arrayrange = arrayinfo.GetComponentRange(-1)
- if arrayrange[1] > 0 :
- scale = scale / arrayrange[1]
-
-WarpByVector1.ScaleFactor = scale
-
-AnimationScene1 = GetAnimationScene()
-
-TimeAnimationCue1 = GetTimeTrack()
-TimeAnimationCue1.Enabled = 0
+if vectorname == None :
+ source.AnimationMode = oldmode
+else :
+ ScaleVector1.ScaleFactor = 0
+ ScaleVector1.UpdatePipeline()
+ bounds = info.DataInformation.GetBounds()
+ side = [bounds[1] - bounds[0], bounds[3] - bounds[2], bounds[5] - bounds[4]]
+ length = side[0]
+ if side[1] > length : length = side[1]
+ if side[2] > length : length = side[2]