frameEnd
frameEnd
gets/sets the
number of the last frame of the action.
Type: float
Sample
Code
################ Get frameEnd
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
# get number of the last frame
endFrame = act.frameEnd
################ Set frameEnd
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
# set the end
act.frameEnd = 15.0
|