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