本文整理汇总了Python中FxStudio.getWordList方法的典型用法代码示例。如果您正苦于以下问题:Python FxStudio.getWordList方法的具体用法?Python FxStudio.getWordList怎么用?Python FxStudio.getWordList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FxStudio
的用法示例。
在下文中一共展示了FxStudio.getWordList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getWordList [as 别名]
def __init__(self, animGroupName, animName):
""" Initialize the object by pulling the data from Studio. """
PhonemeList.__init__(self, animGroupName, animName)
wordTuplesFromStudio = FxStudio.getWordList(animGroupName, animName)
self.words = [
Word(w, FxStudio.getPhonemesInWord(animGroupName, animName, i))
for i, w in enumerate(wordTuplesFromStudio)]
示例2: load_from_anim
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getWordList [as 别名]
def load_from_anim(cls, anim_path):
""" Creates a word list from a given animation.
anim_path is formatted [anim_group]/[animation]
"""
animGroupName, animName = FxHelperLibrary.split_animpath(anim_path)
word_tuples = FxStudio.getWordList(animGroupName, animName)
if len(word_tuples) == 0:
return WordList()
word_list = [Word(x[0], x[1], x[2]) for x in word_tuples]
return WordList(word_list)