F-Curve start frame

is it possible too set the end frame automaticle as the beginning of a new start frame
so where ever the object is when you play it it going to the end frame

i need this for a elevator
so i dont mather where you get in the elevator, when you press 1 its going to floor 1 because the end frame of 1 is floor 1

thnx

Attachments

moveandelavator009.blend (780 KB)

You can change the start frame (FCurveActuator.frame_start) and the end frame (FCurveActuator.frame_end) with a Python script. By the way the Python scripts in your blend file are made for Blender 2.49 and don’t works with 2.5x.
http://www.blender.org/documentation/blender_python_api_2_54_0/bpy.types.FCurveActuator.html#bpy.types.FCurveActuator.frame_end

HG1.