当前位置: 首页>>代码示例>>Python>>正文


Python FxStudio.getSelectedAnimGroupName方法代码示例

本文整理汇总了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))
开发者ID:e-johnson,项目名称:AndroidProject,代码行数:9,代码来源:ConfidenceScoreGUI.py

示例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))
开发者ID:e-johnson,项目名称:AndroidProject,代码行数:12,代码来源:ConfidenceScoreGUI.py

示例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
开发者ID:e-johnson,项目名称:AndroidProject,代码行数:25,代码来源:previewanimation.py

示例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())
开发者ID:e-johnson,项目名称:AndroidProject,代码行数:6,代码来源:FxHelperLibrary.py

示例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))
开发者ID:e-johnson,项目名称:AndroidProject,代码行数:7,代码来源:ConfidenceScoreGUI.py


注:本文中的FxStudio.getSelectedAnimGroupName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。