View Single Post
  #5  
Old 09-21-2004, 02:06 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Josh,

Yeah, you can retrieve the index of a morph target by name, then use that index with the morph command. For example, let's say you have a morph called "smile", you would do something like the following:
Code:
face = viz.add('myface.vzf')

#Get the index for the morph named 'smile'
smile = face.getmorph('smile')

#Now apply the smile morph
face.morph(smile,1.0)
Reply With Quote