frameEnd
frameEnd
gets/sets the last frame the Ipo will play.
Type: float number
Sample
Code
################ Get frameEnd
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# get last frame
last = act.frameEnd
################ Set frameEnd
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# set last frame
act.frameEnd = 30.0
|