Votes
0
Product:
iClone 7
Version:
7.41
Status:
Released in 7.7
Issue 5954
GetVisemeKey crash when trying to get keys with times from GetVisemeKeyTimes
def get_viseme_keys_from_model(model):
component=model.GetVisemeComponent()
key_time_list=component.GetVisemeKeyTimes()
key_count = len(key_time_list)
# Create list to add keys in
all_keys = []
viseme_weight = 0
# Loop all keys
for i in range(key_count):
# Get key
key = component.GetVisemeKey(key_time_list[i],RLPy.EVisemeID_NONE,viseme_weight)
# Add key to list
all_keys.append(key)
return all_keys
OS: Windows 10
  •  1
  •  918
Submitted byThe-any-Key
1
COMMENTS (1)
animagic
I can confirm that using GetVisemeKey gives an error. It looks like things are not quite ready for release...

BTW, an easier way to loop is simply:

for key_time in key_time_list:
    key = component.GetVisemeKey(key_time,RLPy.EVisemeID_NONE,viseme_weight)
1