IF animation AND aniE>aniB THEN
!... OK animation process is allowed
!... do the settings
startwert = gs_open_3d
zielwert = 90 ! target value of the animated parameter
IF GLOB_FRAME_NR>=aniB THEN
IF GLOB_FRAME_NR<aniE THEN
!... in the animation process
schritt = (zielwert-startwert)/(aniE-aniB+1)
wert = startwert+schritt*(GLOB_FRAME_NR-aniB+1)
ELSE
!... after animation
wert = zielwert
ENDIF
!... set animated value
gs_open_3d = wert
ENDIF
ENDIF