#
# NEED_PARMS startpos endpos steps
#
# HELP: SYNOPSIS:
# HELP:     generic/movie/nurb/follow startpos endpos steps
# HELP:
# HELP: DESCRIPTION:
# HELP:     Follow the active NURB
#
DECLARE double $target,$current,$stepconst
DECLARE int $steps

CECHO ${$current=(double)$argv[1]}
CECHO ${$target=(double)$argv[2]}
CECHO ${$steps=(int)$argv[3]}
CECHO ${$stepconst=($target-$current)/$steps}

{ DOIT ${$steps--}
	NURB_SETCAM ${$current}
	VIEW_RENDER
	CECHO ${$current+=$stepconst}
} DOIT 0 1

NURB_SETCAM ${$target}
VIEW_RENDER
