1
2
3 from SCA_IActuator import *
4
6 """
7 IPO actuator activates an animation.
8 """
9 - def set(mode, startframe, endframe, force):
10 """
11 Sets the properties of the actuator.
12
13 @param mode: "Play", "PingPong", "Flipper", "LoopStop", "LoopEnd" or "FromProp"
14 @type mode: string
15 @param startframe: first frame to use
16 @type startframe: integer
17 @param endframe: last frame to use
18 @type endframe: integer
19 @param force: interpret this ipo as a force
20 @type force: boolean (KX_TRUE, KX_FALSE)
21 """
23 """
24 Sets the name of the property to be used in FromProp mode.
25
26 @type property: string
27 """
29 """
30 Sets the frame from which the IPO starts playing.
31
32 @type startframe: integer
33 """
35 """
36 Returns the frame from which the IPO starts playing.
37
38 @rtype: integer
39 """
41 """
42 Sets the frame at which the IPO stops playing.
43
44 @type endframe: integer
45 """
47 """
48 Returns the frame at which the IPO stops playing.
49
50 @rtype: integer
51 """
53 """
54 Set whether to interpret the ipo as a force rather than a displacement.
55
56 @type force: boolean
57 @param force: KX_TRUE or KX_FALSE
58 """
60 """
61 Returns whether to interpret the ipo as a force rather than a displacement.
62
63 @rtype: boolean
64 """
66 """
67 Sets the operation mode of the actuator.
68
69 @param mode: KX_IPOACT_PLAY, KX_IPOACT_PINGPONG, KX_IPOACT_FLIPPER, KX_IPOACT_LOOPSTOP, KX_IPOACT_LOOPEND
70 @type mode: string
71 """
73 """
74 Returns the operation mode of the actuator.
75
76 @rtype: integer
77 @return: KX_IPOACT_PLAY, KX_IPOACT_PINGPONG, KX_IPOACT_FLIPPER, KX_IPOACT_LOOPSTOP, KX_IPOACT_LOOPEND
78 """
80 """
81 Set whether to apply the force in the object's local
82 coordinates rather than the world global coordinates.
83
84 @param local: Apply the ipo-as-force in the object's local
85 coordinates? (KX_TRUE, KX_FALSE)
86 @type local: boolean
87 """
89 """
90 Return whether to apply the force in the object's local
91 coordinates rather than the world global coordinates.
92 """
93