當前位置: 首頁>>代碼示例>>Python>>正文


Python Red9_CoreUtils.timeIsInRange方法代碼示例

本文整理匯總了Python中Red9.core.Red9_CoreUtils.timeIsInRange方法的典型用法代碼示例。如果您正苦於以下問題:Python Red9_CoreUtils.timeIsInRange方法的具體用法?Python Red9_CoreUtils.timeIsInRange怎麽用?Python Red9_CoreUtils.timeIsInRange使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Red9.core.Red9_CoreUtils的用法示例。


在下文中一共展示了Red9_CoreUtils.timeIsInRange方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_timeIsInRange

# 需要導入模塊: from Red9.core import Red9_CoreUtils [as 別名]
# 或者: from Red9.core.Red9_CoreUtils import timeIsInRange [as 別名]
 def test_timeIsInRange(self):
     
     assert r9Core.timeIsInRange((0,100),(9,80))
     assert not r9Core.timeIsInRange((10,100),(9,80))
     assert not r9Core.timeIsInRange((-100,10),(9,80))
     assert r9Core.timeIsInRange((-100,10),(-100,0))
     
     assert r9Core.timeIsInRange((-100,None),(9,80))
     assert r9Core.timeIsInRange((0,None),(9,80))
     assert not r9Core.timeIsInRange((0,None),(-5,80))
     
     assert r9Core.timeIsInRange((None,100),(9,80))
     assert not r9Core.timeIsInRange((None,100),(9,101))
     assert r9Core.timeIsInRange((None,100),(-5,0))
開發者ID:satishgoda,項目名稱:Red9_StudioPack,代碼行數:16,代碼來源:Red9_CoreUtilTests.py

示例2: test_timeIsInRange

# 需要導入模塊: from Red9.core import Red9_CoreUtils [as 別名]
# 或者: from Red9.core.Red9_CoreUtils import timeIsInRange [as 別名]
 def test_timeIsInRange(self):
     
     assert r9Core.timeIsInRange((0,100),(9,80))
     assert not r9Core.timeIsInRange((10,100),(9,80))
     assert not r9Core.timeIsInRange((-100,10),(9,80))
     assert r9Core.timeIsInRange((-100,10),(-100,0))
     
     assert r9Core.timeIsInRange((-100,None),(9,80))
     assert r9Core.timeIsInRange((0,None),(9,80))
     assert not r9Core.timeIsInRange((0,None),(-5,80))
     
     assert r9Core.timeIsInRange((None,100),(9,80))
     assert not r9Core.timeIsInRange((None,100),(9,101))
     assert r9Core.timeIsInRange((None,100),(-5,0))
     
     assert r9Core.timeIsInRange((40,100),(40,100), start_inRange=True, end_inRange=True)
     assert r9Core.timeIsInRange((40,100),(50,99), start_inRange=True, end_inRange=True)
     assert not r9Core.timeIsInRange((40,100),(40,101), start_inRange=True, end_inRange=True)
     assert r9Core.timeIsInRange((40,100),(50,101), start_inRange=True, end_inRange=False)
     assert r9Core.timeIsInRange((40,100),(20,50), start_inRange=False, end_inRange=True)
     assert not r9Core.timeIsInRange((40,100),(20,101), start_inRange=False, end_inRange=True)
開發者ID:hoorayfor3d,項目名稱:Red9_StudioPack,代碼行數:23,代碼來源:Red9_CoreUtilTests.py

示例3: Test_LockNodes

# 需要導入模塊: from Red9.core import Red9_CoreUtils [as 別名]
# 或者: from Red9.core.Red9_CoreUtils import timeIsInRange [as 別名]
        
        assert r9Core.timeIsInRange((0,100),(9,80))
        assert not r9Core.timeIsInRange((10,100),(9,80))
        assert not r9Core.timeIsInRange((-100,10),(9,80))
        assert r9Core.timeIsInRange((-100,10),(-100,0))
        
        assert r9Core.timeIsInRange((-100,None),(9,80))
        assert r9Core.timeIsInRange((0,None),(9,80))
        assert not r9Core.timeIsInRange((0,None),(-5,80))
        
        assert r9Core.timeIsInRange((None,100),(9,80))
        assert not r9Core.timeIsInRange((None,100),(9,101))
        assert r9Core.timeIsInRange((None,100),(-5,0))
        
<<<<<<< HEAD
        assert r9Core.timeIsInRange((40,100),(40,100), start_inRange=True, end_inRange=True)
        assert r9Core.timeIsInRange((40,100),(50,99), start_inRange=True, end_inRange=True)
        assert not r9Core.timeIsInRange((40,100),(40,101), start_inRange=True, end_inRange=True)
        assert r9Core.timeIsInRange((40,100),(50,101), start_inRange=True, end_inRange=False)
        assert r9Core.timeIsInRange((40,100),(20,50), start_inRange=False, end_inRange=True)
        assert not r9Core.timeIsInRange((40,100),(20,101), start_inRange=False, end_inRange=True)

  
=======
        
>>>>>>> d7ab8a039c4da0838a07bf4a9ec3ad957667b21e
class Test_LockNodes(object):
    def setup(self):
        cmds.file(new=True,f=True)
        self.cube=cmds.ls(cmds.polyCube()[0],l=True)[0]
        
開發者ID:Italic-,項目名稱:maya-prefs,代碼行數:32,代碼來源:Red9_CoreUtilTests.py


注:本文中的Red9.core.Red9_CoreUtils.timeIsInRange方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。