bgdev.api.blendshape

API methods for blendshapes.

author

Benoit Gielly (benoit.gielly@gmail.com)

add_blendshape_targets(blendshape, shape, alias=None)[source]

Add and update targets on the given blendShape.

copy_target_weights(source, destination)[source]

Copy a blendshape’s target weights to another target.

Parameters
  • source (str) – Name of the blendshape’s source plug

  • destination (str) – Name of the blendshape’s destination plug

delete_blendshape_target(blendshape, index)[source]

Delete given target index on blendshape node.

disable_target_weights(blendshape)[source]

Disable all weights on blendshape node.

disconnect_target(blendshape, shape)[source]

Disconnect given shape from blendshape node.

reset_target_delta(blendshape, shape, targets=None)[source]

Reset given shape delta in the blendshape node.

restore_target_weights(restore_data)[source]

Restore blendshape weights based on previous data.