Module GameTypes :: Class BL_ShapeActionActuator
[frames] | no frames]

Class BL_ShapeActionActuator

PyObjectPlus --+            
               |            
          CValue --+        
                   |        
     SCA_ILogicBrick --+    
                       |    
           SCA_IActuator --+
                           |
                          BL_ShapeActionActuator

ShapeAction Actuators apply an shape action to an mesh object.

Instance Methods
bool
isA(game_type)
Check if this is a type or a subtype game_type. (Inherited from GameTypes.PyObjectPlus)
    Deprecated
 
setAction(action, reset=True)
Sets the current action.
 
setStart(start)
Specifies the starting frame of the animation.
 
setEnd(end)
Specifies the ending frame of the animation.
 
setBlendin(blendin)
Specifies the number of frames of animation to generate when making transitions between actions.
 
setPriority(priority)
Sets the priority of this actuator.
 
setFrame(frame)
Sets the current frame for the animation.
 
setProperty(prop)
Sets the property to be used in FromProp playback mode.
 
setBlendtime(blendtime)
Sets the internal frame timer.
 
setType(mode)
Sets the operation mode of the actuator
integer
getType()
Returns the operation mode of the actuator
string
getAction()
getAction() returns the name of the action associated with this actuator.
float
getStart()
Returns the starting frame of the action.
float
getEnd()
Returns the last frame of the action.
float
getBlendin()
Returns the number of interpolation animation frames to be generated when this actuator is triggered.
integer
getPriority()
Returns the priority for this actuator.
float
getFrame()
Returns the current frame number.
string
getProperty()
Returns the name of the property to be used in FromProp mode.
 
setFrameProperty(prop)
string
getFrameProperty()
Returns the name of the property that is set to the current frame number.
integer
getExecutePriority()
Gets the execution priority of this logic brick. (Inherited from GameTypes.SCA_ILogicBrick)
string
getName()
Returns the name of the CValue. (Inherited from GameTypes.CValue)
KX_GameObject
getOwner()
Gets the game object associated with this logic brick. (Inherited from GameTypes.SCA_ILogicBrick)
 
setExecutePriority(priority)
Sets the priority of this logic brick. (Inherited from GameTypes.SCA_ILogicBrick)
Instance Variables
string action
The name of the action to set as the current shape action.
float blendIn
Specifies the number of frames of animation to generate when making transitions between actions.
float blendTime
Sets the internal frame timer.
int executePriority
This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from GameTypes.SCA_ILogicBrick)
float frame
Sets the current frame for the animation.
float frameEnd
Specifies the ending frame of the shape animation.
string framePropName
The name of the property that is set to the current frame number.
float frameStart
Specifies the starting frame of the shape animation.
bool invalid
Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus)
integer mode
The operation mode of the actuator.
string name
The name of this CValue derived object (read-only). (Inherited from GameTypes.SCA_ILogicBrick)
KX_GameObject or None in exceptional cases. owner
The game object this logic brick is attached to (read-only). (Inherited from GameTypes.SCA_ILogicBrick)
integer priority
Sets the priority of this actuator.
string propName
Sets the property to be used in FromProp playback mode.
Method Details

setAction(action, reset=True)

 

Sets the current action.

Parameters:
  • action (string) - The name of the action to set as the current action.
  • reset - Optional parameter indicating whether to reset the blend timer or not. A value of 1 indicates that the timer should be reset. A value of 0 will leave it unchanged. If reset is not specified, the timer will be reset.

Deprecated: use the action property

setStart(start)

 

Specifies the starting frame of the animation.

Parameters:
  • start (float) - the starting frame of the animation

Deprecated: use the frameStart property

setEnd(end)

 

Specifies the ending frame of the animation.

Parameters:
  • end (float) - the ending frame of the animation

Deprecated: use the frameEnd property

setBlendin(blendin)

 

Specifies the number of frames of animation to generate when making transitions between actions.

Parameters:
  • blendin (float) - the number of frames in transition.

Deprecated: use the blendIn property

setPriority(priority)

 

Sets the priority of this actuator.

Parameters:
  • priority (integer) - Specifies the new priority. Actuators will lower priority numbers will override actuators with higher numbers.

Deprecated: use the priority property

setFrame(frame)

 

Sets the current frame for the animation.

Parameters:
  • frame (float) - Specifies the new current frame for the animation

Deprecated: use the frame property

setProperty(prop)

 

Sets the property to be used in FromProp playback mode.

Parameters:
  • prop (string.) - the name of the property to use.

Deprecated: use the property property

setBlendtime(blendtime)

 

Sets the internal frame timer.

Allows the script to directly modify the internal timer used when generating transitions between actions.

Parameters:
  • blendtime (float) - The new time. This parameter must be in the range from 0.0 to 1.0.

Deprecated: use the blendTime property

setType(mode)

 

Sets the operation mode of the actuator

Parameters:
  • mode (integer) - KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND

Deprecated: use the type property

getType()

 

Returns the operation mode of the actuator

Returns: integer
KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND

Deprecated: use the type property

getAction()

 

getAction() returns the name of the action associated with this actuator.

Returns: string

Deprecated: use the action property

getStart()

 

Returns the starting frame of the action.

Returns: float

Deprecated: use the frameStart property

getEnd()

 

Returns the last frame of the action.

Returns: float

Deprecated: use the frameEnd property

getBlendin()

 

Returns the number of interpolation animation frames to be generated when this actuator is triggered.

Returns: float

Deprecated: use the blendIn property

getPriority()

 

Returns the priority for this actuator. Actuators with lower Priority numbers will override actuators with higher numbers.

Returns: integer

Deprecated: use the priority property

getFrame()

 

Returns the current frame number.

Returns: float

Deprecated: use the frame property

getProperty()

 

Returns the name of the property to be used in FromProp mode.

Returns: string

Deprecated: use the property property

setFrameProperty(prop)

 
Parameters:
  • prop (string) - A string specifying the property of the object that will be updated with the action frame number.

Deprecated: use the framePropName property

getFrameProperty()

 

Returns the name of the property that is set to the current frame number.

Returns: string

Deprecated: use the framePropName property


Instance Variable Details

blendTime

Sets the internal frame timer. This property must be in the range from 0.0 to blendin.
Type:
float

mode

The operation mode of the actuator. KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND
Type:
integer

priority

Sets the priority of this actuator. Actuators will lower priority numbers will override actuators with higher numbers.
Type:
integer