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
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
You are going to edit a submitted issue. This issue will be changed to private draft mode until you click submit again. Are you sure?