本文整理汇总了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
示例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
示例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'))