get_target_index

source.Maya.misc_tools.get_target_index(blendshape, target)

Get index of specified target in blendshape

Example:

import Maya.misc_tools as mtools

target = 'pSphere1_deformed'
blendshape = 'pSphere1.blendshape'

target_index = get_target_index(blendshape, target)
Parameters
  • blendshape – Blendshape containing the target

  • target – target name

Returns

index of given target

Return type

int