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