Accessing Blend Shapes via code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rattel
:warning: Old Version Published before Godot 3 was released.

Is it possible to change values of Blend Shapes in a mesh with a script? If no, is there any workaround?

:bust_in_silhouette: Reply From: hinasis

I’m a noob in 3D, but look at this:

(3.0 docs)

There are methods to create and get blend shapes.

Thanks, but the only function that looks kinda like useful here is surface_get_blend_shape_arrays() and there is there is no set_ function

Rattel | 2018-01-15 10:13

:bust_in_silhouette: Reply From: anllucah

try

$Mesh.set("blend_shapes/nameShapeHere", value)

It works for me, thanks!

j2l | 2019-03-09 13:39

I spent an hour searching for it :slight_smile: This worked. Thanks

sxkod | 2019-09-12 17:40