useIpoAdd
useIpoAdd
gets/sets the state of the Ipo Add button.
Ipo Add button:
Ipo (loc/rot/scale)
retrieved is added to the sum of previous Ipos.
Type: Bool
1 = True
Ipo = Ipo
+ sum of previous Ipos
0 = False
Ipo = Ipo
Sample
Code
################ Get useIpoAdd
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# Ipo added to previous Ipos?
addIpo = act.useIpoAdd
################ Set useIpoAdd
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# Ipo added to previous Ipos
act.useIpoAdd = True
|