1
2
3 from SCA_IActuator import *
4
6 """
7 Action Actuators apply an action to an actor.
8 """
10 """
11 Sets the current action.
12
13 @param action: The name of the action to set as the current action.
14 @type action: string
15 @param reset: Optional parameter indicating whether to reset the
16 blend timer or not. A value of 1 indicates that the
17 timer should be reset. A value of 0 will leave it
18 unchanged. If reset is not specified, the timer will
19 be reset.
20 """
21
23 """
24 Specifies the starting frame of the animation.
25
26 @param start: the starting frame of the animation
27 @type start: float
28 """
29
31 """
32 Specifies the ending frame of the animation.
33
34 @param end: the ending frame of the animation
35 @type end: float
36 """
38 """
39 Specifies the number of frames of animation to generate
40 when making transitions between actions.
41
42 @param blendin: the number of frames in transition.
43 @type blendin: float
44 """
45
47 """
48 Sets the priority of this actuator.
49
50 @param priority: Specifies the new priority. Actuators will lower
51 priority numbers will override actuators with higher
52 numbers.
53 @type priority: integer
54 """
56 """
57 Sets the current frame for the animation.
58
59 @param frame: Specifies the new current frame for the animation
60 @type frame: float
61 """
62
64 """
65 Sets the property to be used in FromProp playback mode.
66
67 @param prop: the name of the property to use.
68 @type prop: string.
69 """
70
72 """
73 Sets the internal frame timer.
74
75 Allows the script to directly modify the internal timer
76 used when generating transitions between actions.
77
78 @param blendtime: The new time. This parameter must be in the range from 0.0 to 1.0.
79 @type blendtime: float
80 """
81
83 """
84 Sets the operation mode of the actuator
85
86 @param mode: KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND
87 @type mode: integer
88 """
89
91 """
92 Set the actions continue option True or False. see getContinue.
93
94 @param cont: The continue option.
95 @type cont: bool
96 """
97
99 """
100 Returns the operation mode of the actuator
101
102 @rtype: integer
103 @return: KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND
104 """
105
107 """
108 When True, the action will always play from where last left off, otherwise negative events to this actuator will reset it to its start frame.
109
110 @rtype: bool
111 """
112
114 """
115 getAction() returns the name of the action associated with this actuator.
116
117 @rtype: string
118 """
119
121 """
122 Returns the starting frame of the action.
123
124 @rtype: float
125 """
127 """
128 Returns the last frame of the action.
129
130 @rtype: float
131 """
133 """
134 Returns the number of interpolation animation frames to be generated when this actuator is triggered.
135
136 @rtype: float
137 """
139 """
140 Returns the priority for this actuator. Actuators with lower Priority numbers will
141 override actuators with higher numbers.
142
143 @rtype: integer
144 """
146 """
147 Returns the current frame number.
148
149 @rtype: float
150 """
152 """
153 Returns the name of the property to be used in FromProp mode.
154
155 @rtype: string
156 """
158 """
159 @param channel: A string specifying the name of the bone channel.
160 @type channel: string
161 @param matrix: A 4x4 matrix specifying the overriding transformation
162 as an offset from the bone's rest position.
163 @type matrix: list [[float]]
164 @param mode: True for armature/world space, False for bone space
165 @type mode: boolean
166 """
168 """
169 @param prop: A string specifying the property of the object that will be updated with the action frame number.
170 @type prop: string
171 """
173 """
174 Returns the name of the property that is set to the current frame number.
175
176 @rtype: string
177 """
178