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


Python Red9_General.formatPath方法代码示例

本文整理汇总了Python中Red9.core.Red9_General.formatPath方法的典型用法代码示例。如果您正苦于以下问题:Python Red9_General.formatPath方法的具体用法?Python Red9_General.formatPath怎么用?Python Red9_General.formatPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Red9.core.Red9_General的用法示例。


在下文中一共展示了Red9_General.formatPath方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_basics

# 需要导入模块: from Red9.core import Red9_General [as 别名]
# 或者: from Red9.core.Red9_General import formatPath [as 别名]
 def test_basics(self):
     assert isinstance(self.audioNode, r9Audio.AudioNode)
     assert r9General.formatPath(self.audioNode.path)==r9General.formatPath(self.bwavpath)
     assert self.audioNode.audioNode=='bwav_test'
     assert self.audioNode.sample_width==2
     assert self.audioNode.sampleRate==44100
     assert self.audioNode.sample_bits==16
     assert self.audioNode.channels==1
开发者ID:timmwagener,项目名称:Red9_StudioPack,代码行数:10,代码来源:Red9_AudioTest.py

示例2: test_funcs

# 需要导入模块: from Red9.core import Red9_General [as 别名]
# 或者: from Red9.core.Red9_General import formatPath [as 别名]
    def test_funcs(self):
        assert isinstance(self.audioNode, r9Audio.AudioNode)
        assert r9General.formatPath(self.audioNode.path) == r9General.formatPath(self.bwavpath)
        assert self.audioNode.isLoaded
        assert cmds.ls(type='audio')[0] == 'bwav_test'
        assert self.audioNode.audioNode == 'bwav_test'

        assert self.audioNode.startFrame == 0
        self.audioNode.startFrame = 10
        assert self.audioNode.startFrame == 10
        assert cmds.getAttr('%s.offset' % self.audioNode.audioNode) == 10
        self.audioNode.offsetTime(25)
        assert self.audioNode.startFrame == 35

        assert cmds.getAttr('%s.mute' % self.audioNode.audioNode) == False
        self.audioNode.mute(True)
        assert cmds.getAttr('%s.mute' % self.audioNode.audioNode) == True
开发者ID:markj3d,项目名称:Red9_StudioPack,代码行数:19,代码来源:Red9_AudioTest.py

示例3: setup

# 需要导入模块: from Red9.core import Red9_General [as 别名]
# 或者: from Red9.core.Red9_General import formatPath [as 别名]
 def setup(self):
     cmds.file(new=True, f=True)
     self.path = r9General.formatPath(os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles', 'bwav_test.wav'))
开发者ID:markj3d,项目名称:Red9_StudioPack,代码行数:5,代码来源:Red9_AudioTest.py


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