Vital.sandbox
Model

self:get_blendshape_value

Shared

Retrieves the current value of a blendshape on a specific component


Syntax

local value = self:get_blendshape_value(component, blendshape)

Parameters

TypeNameDescription
stringcomponentPath of the component containing the blendshape
stringblendshapeName of the blendshape to retrieve

Returns

TypeNameDescription
floatvalueCurrent value of the blendshape

Examples

Get the current value of a blendshape on a component
local entity = model.create("character")

engine.print("info", "Blend shape value:", entity:get_blendshape_value("Skeleton3D/Head", "smile"))

On this page