BlendShape - stingray.BlendShape namespace reference - Stingray Lua API Reference
Use the functions in the BlendShape API to set and retrieve blending weights for specific units.
|
Return the current weight on the given mesh for the specified blend shape.
|
Parameters unit : | stingray.Unit | The unit owning the blend shape. |
mesh_name : | string | The mesh name. |
blend_shape_name : | string | The blend shape name |
Returns number |
The current weight on the given mesh for the specified blend shape.
|
|
Return the current weight for the given channel.
|
Parameters unit : | stingray.Unit | The unit owning the blend shape. |
channel_name : | string | The blend shape channel name. |
Returns number |
The current weight for the given channel.
|
|
Set the current weight on the given mesh for the specified blend shape.
|
Parameters unit : | stingray.Unit | The unit owning the blend shape. |
mesh_name : | string | The mesh name. |
blend_shape_name : | string | The blend shape name |
desired_weight : | number | The desired weight on the given mesh for the specified blend shape. |
Returns | This function does not return any values. |
|
Set the current weight for the given channel.
|
Parameters unit : | stingray.Unit | The unit owning the blend shape. |
channel_name : | string | The blend shape channel name. |
desired_weight : | number | The desired weight for the given channel. |
Returns | This function does not return any values. |
|
Sets the amount of time that will be available for transferring vertex anim data to GPU per update
|
Parameters time : | number | Available time in seconds |
Returns | This function does not return any values. |