本文整理汇总了Python中FxStudio.getSelectedAnimGroupName方法的典型用法代码示例。如果您正苦于以下问题:Python FxStudio.getSelectedAnimGroupName方法的具体用法?Python FxStudio.getSelectedAnimGroupName怎么用?Python FxStudio.getSelectedAnimGroupName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FxStudio
的用法示例。
在下文中一共展示了FxStudio.getSelectedAnimGroupName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: OnEditButtonClicked
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getSelectedAnimGroupName [as 别名]
def OnEditButtonClicked(self, event):
currentAnimation = Animation(FxStudio.getSelectedAnimGroupName(),
FxStudio.getSelectedAnimName())
audiopath = currentAnimation.absoluteAudioAssetPath
if audiopath.rfind(".") > 0:
textpath = audiopath[:audiopath.rfind(".")] + ".txt"
subprocess.Popen('Notepad {0}'.format(textpath))
示例2: OnPlayButtonClicked
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getSelectedAnimGroupName [as 别名]
def OnPlayButtonClicked(self, event):
group = self.errorAreas[self.errorIndex]["group"]
anim = self.errorAreas[self.errorIndex]["anim"]
starttime = self.errorAreas[self.errorIndex]["starttime"] - START_PADDING
endtime = self.errorAreas[self.errorIndex]["endtime"]
if FxStudio.getSelectedAnimGroupName() != group:
FxStudio.issueCommand('select -type "animgroup" -names "{0}"'.format(group))
if FxStudio.getSelectedAnimName() != anim:
FxStudio.issueCommand('select -type "anim" -names "{0}"'.format(anim))
FxStudio.issueCommand('play -start {0} -end {1}'.format(starttime, endtime))
示例3: __enter__
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getSelectedAnimGroupName [as 别名]
def __enter__(self):
self.cached_group_name = FxStudio.getSelectedAnimGroupName()
self.cached_anim_name = FxStudio.getSelectedAnimName()
try:
commands.create_anim_group(config.PREVIEW_GROUP_NAME)
self.created_group = True
commands.create_anim(
config.PREVIEW_GROUP_NAME,
config.PREVIEW_ANIM_NAME)
self.created_anim = True
commands.select_animation(
config.PREVIEW_GROUP_NAME,
config.PREVIEW_ANIM_NAME)
commands.set_preview_anim(self.animation_name)
except FBXImportError:
self.cleanup()
raise
return self
示例4: get_selected_animpath
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getSelectedAnimGroupName [as 别名]
def get_selected_animpath():
""" Return the selected animation's path in the form 'group/anim'. """
return '{0}/{1}'.format(FxStudio.getSelectedAnimGroupName(),
FxStudio.getSelectedAnimName())
示例5: OnReanalyzeButtonClicked
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getSelectedAnimGroupName [as 别名]
def OnReanalyzeButtonClicked(self, event):
currentAnimation = Animation(FxStudio.getSelectedAnimGroupName(),
FxStudio.getSelectedAnimName())
FxStudio.issueCommand('analyze -audio "{0}" -overwrite'.format(
currentAnimation.absoluteAudioAssetPath))