BlendShape - stingray.BlendShape namespace reference - Stingray Lua API Reference

stingray.BlendShape namespace reference

Description

Use the functions in the BlendShape API to set and retrieve blending weights for specific units.

Functions

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.

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.

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.
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.
Parameters

time :

number

Available time in seconds

Returns
This function does not return any values.