Open topic with navigation
<node3d:face>.getMorphID
ID of a morph target
<node3d:face>.getMorphID( |
|
name |
) |
|
name
Name of the morph target
Remarks
This command will return the ID of a morph target with the given name.
Return Value
The ID of the morph target. If the face does not contain a morph target with the specified name, the return value will be -1
Example
#Print out the index of a morph named 'smile'
smile = face.getMorphID('smile')
face.setMorph(smile,1.0)
print(smile)