Votes
0
Product:
iClone 7
Version:
7.41
Status:
Released in 7.7
Issue 5951
Function GetVisemeKeys() missing in API 073
I have a script that uses GetVisemeKeys() and that ran fine in API 072. Have in API 073, I get an error.

Here is a snippet to illustrate this (before running, make sure there is at least one avatar is in the scene):

import RLPy

avatar_list = RLPy.RScene.GetAvatars()
avatar = avatar_list[0]
viseme_animator = avatar.GetVisemeComponent()

audio_object = RLPy.RAudio.CreateAudioObject()
audio_object.Load("C:\\Sample.wav") # replace with existing .wav file
clip_name = "VisemeClip"
clip_start_time = RLPy.RTime(0)
viseme_animator.LoadVocal(audio_object, clip_start_time, clip_name)

# get all viseme keys
print("get all viseme keys")
keys = viseme_animator.GetVisemeKeys()

At this point the script fails with an error:
<class 'AttributeError'>, File: C:\Program Files\Reallusion\Python_API_073\Bin64\RLPy.py, Line: 80
OS: Windows 10
  •  1
  •  901
Submitted byanimagic
1
COMMENTS (1)
animagic
User The-any-Key has pointed out that the function name has changed to: GetVisemeKeyTimes(). 

I still want to mark it as a bug, because changing function names in an API without informing developers and updating the documentation is a bad idea.
1