framePropName
framePropName
gets/sets
the name of the property to be used to hold the current frame number
Type:
string.
Sample Code
################# Get framePropName
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# Get the frame property name
name = act.framePropName
################# Set framePropName
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# Set the property name
act.framePropName = "CurrentFrameNumber"
|