framePropName
framePropName
gets/sets the name of the Frame Property.
Type: string
Sample
Code
################ Get framePropName
# get the controller
controller = GameLogic.getCurrentController()
# get the shape action actuator attached to the
controller named Mouth
act = controller.actuators["Mouth"]
# get the
name the current frame property
name = act.framePropName
################ Set framePropName
# get the controller
controller = GameLogic.getCurrentController()
# get the shape action actuator attached to the
controller named Mouth
act = controller.actuators["Mouth"]
# set the
name the current frame property
act.framePropName = "Frown"
|