2 # Documentation for BL_ShapeActionActuator
3 from SCA_IActuator import *
4 from SCA_ILogicBrick import *
6 class BL_ShapeActionActuator(SCA_IActuator):
8 ShapeAction Actuators apply an shape action to an mesh object.\
10 @ivar action: The name of the action to set as the current shape action.
12 @ivar start: Specifies the starting frame of the shape animation.
14 @ivar end: Specifies the ending frame of the shape animation.
16 @ivar blendin: Specifies the number of frames of animation to generate when making transitions between actions.
18 @ivar priority: Sets the priority of this actuator. Actuators will lower
19 priority numbers will override actuators with higher
21 @type priority: integer
22 @ivar frame: Sets the current frame for the animation.
24 @ivar property: Sets the property to be used in FromProp playback mode.
25 @type property: string
26 @ivar blendTime: Sets the internal frame timer. This property must be in
27 the range from 0.0 to blendin.
28 @type blendTime: float
29 @ivar type: The operation mode of the actuator.
30 KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER,
31 KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND
33 @ivar frameProperty: The name of the property that is set to the current frame number.
34 @type frameProperty: string
37 def setAction(action, reset = True):
39 DEPRECATED: use the 'action' property
40 Sets the current action.
42 @param action: The name of the action to set as the current action.
44 @param reset: Optional parameter indicating whether to reset the
45 blend timer or not. A value of 1 indicates that the
46 timer should be reset. A value of 0 will leave it
47 unchanged. If reset is not specified, the timer will
53 DEPRECATED: use the 'start' property
54 Specifies the starting frame of the animation.
56 @param start: the starting frame of the animation
62 DEPRECATED: use the 'end' property
63 Specifies the ending frame of the animation.
65 @param end: the ending frame of the animation
68 def setBlendin(blendin):
70 DEPRECATED: use the 'blendin' property
71 Specifies the number of frames of animation to generate
72 when making transitions between actions.
74 @param blendin: the number of frames in transition.
78 def setPriority(priority):
80 DEPRECATED: use the 'priority' property
81 Sets the priority of this actuator.
83 @param priority: Specifies the new priority. Actuators will lower
84 priority numbers will override actuators with higher
86 @type priority: integer
90 DEPRECATED: use the 'frame' property
91 Sets the current frame for the animation.
93 @param frame: Specifies the new current frame for the animation
97 def setProperty(prop):
99 DEPRECATED: use the 'property' property
100 Sets the property to be used in FromProp playback mode.
102 @param prop: the name of the property to use.
106 def setBlendtime(blendtime):
108 DEPRECATED: use the 'blendTime' property
109 Sets the internal frame timer.
111 Allows the script to directly modify the internal timer
112 used when generating transitions between actions.
114 @param blendtime: The new time. This parameter must be in the range from 0.0 to 1.0.
115 @type blendtime: float
120 DEPRECATED: use the 'type' property
121 Sets the operation mode of the actuator
123 @param mode: KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND
129 DEPRECATED: use the 'type' property
130 Returns the operation mode of the actuator
133 @return: KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND
138 DEPRECATED: use the 'action' property
139 getAction() returns the name of the action associated with this actuator.
146 DEPRECATED: use the 'start' property
147 Returns the starting frame of the action.
153 DEPRECATED: use the 'end' property
154 Returns the last frame of the action.
160 DEPRECATED: use the 'blendin' property
161 Returns the number of interpolation animation frames to be generated when this actuator is triggered.
167 DEPRECATED: use the 'priority' property
168 Returns the priority for this actuator. Actuators with lower Priority numbers will
169 override actuators with higher numbers.
175 DEPRECATED: use the 'frame' property
176 Returns the current frame number.
182 DEPRECATED: use the 'property' property
183 Returns the name of the property to be used in FromProp mode.
187 def setFrameProperty(prop):
189 DEPRECATED: use the 'frameProperty' property
190 @param prop: A string specifying the property of the object that will be updated with the action frame number.
193 def getFrameProperty():
195 DEPRECATED: use the 'frameProperty' property
196 Returns the name of the property that is set to the current frame number.