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


Python core.Red9_General类代码示例

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


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

示例1: red9_facebook

def red9_facebook(*args):
    """
    open up the Red9 Facebook Page
    """
    import Red9.core.Red9_General as r9General  # lazy load

    r9General.os_OpenFile("http://www.facebook.com/Red9StudioPack/")
开发者ID:charliewales,项目名称:Red9_StudioPack,代码行数:7,代码来源:setup.py

示例2: red9_apidocs

def red9_apidocs(*args):
    '''
    open up the Red9 Vimeo Channel
    '''
    import Red9.core.Red9_General as r9General  # lazy load
    apidocs=os.path.join(red9ModulePath(),'docs', 'html', 'index.html')
    r9General.os_OpenFile(apidocs)
开发者ID:xavMikeHoward,项目名称:Red9_StudioPack,代码行数:7,代码来源:setup.py

示例3: red9_vimeo

def red9_vimeo(*args):
    """
    open up the Red9 Vimeo Channel
    """
    import Red9.core.Red9_General as r9General  # lazy load

    r9General.os_OpenFile("https://vimeo.com/user9491246")
开发者ID:charliewales,项目名称:Red9_StudioPack,代码行数:7,代码来源:setup.py

示例4: red9_website_home

def red9_website_home(*args):
    """
    open up the Red9 Consultancy homepage
    """
    import Red9.core.Red9_General as r9General  # lazy load

    r9General.os_OpenFile("http://red9consultancy.com/")
开发者ID:charliewales,项目名称:Red9_StudioPack,代码行数:7,代码来源:setup.py

示例5: red9_blog

def red9_blog(*args):
    """
    open up the Red9 Blog
    """
    import Red9.core.Red9_General as r9General  # lazy load

    r9General.os_OpenFile("http://red9-consultancy.blogspot.com/")
开发者ID:charliewales,项目名称:Red9_StudioPack,代码行数:7,代码来源:setup.py

示例6: red9_help

def red9_help(*args):
    '''
    open up the Red9 help docs
    '''
    import Red9.core.Red9_General as r9General  # lazy load
    helpFile=os.path.join(red9ModulePath(),'docs',r'Red9-StudioTools Help.pdf')
    r9General.os_OpenFile(helpFile)
开发者ID:xavMikeHoward,项目名称:Red9_StudioPack,代码行数:7,代码来源:setup.py

示例7: red9_apidocs

def red9_apidocs(*args):
    """
    open up the Red9 Vimeo Channel
    """
    import Red9.core.Red9_General as r9General  # lazy load

    apidocs = os.path.join(red9ModulePath(), "docs", "html", "index.html")
    r9General.os_OpenFile(apidocs)
开发者ID:charliewales,项目名称:Red9_StudioPack,代码行数:8,代码来源:setup.py

示例8: red9_help

def red9_help(*args):
    """
    open up the Red9 help docs
    """
    import Red9.core.Red9_General as r9General  # lazy load

    helpFile = os.path.join(red9ModulePath(), "docs", r"Red9-StudioTools Help.pdf")
    r9General.os_OpenFile(helpFile)
开发者ID:charliewales,项目名称:Red9_StudioPack,代码行数:8,代码来源:setup.py

示例9: get_pro_pack

def get_pro_pack(*args):
    import Red9.core.Red9_General as r9General  # lazy load
    result=cmds.confirmDialog(title='Red9_StudioPack : build %f' % red9_getVersion(),
                       message=("Red9_ProPack Not Installed!\r\r"+
                                "Contact [email protected] for more information"),
                       button=['Red9Consultancy.com','Get_Pro','Close'],messageAlign='center')
    if result == 'Get_Pro':
        log.warning('Red9 ProPack systems not yet available - watch this space!')
    if result =='Red9Consultancy.com':
        r9General.os_OpenFile('http://red9consultancy.com/')
开发者ID:cgdestroyer,项目名称:Red9_StudioPack,代码行数:10,代码来源:setup.py

示例10: red9ContactInfo

def red9ContactInfo(*args):
    result=cmds.confirmDialog(title='Red9_StudioPack : build %f' % red9_getVersion(),
                       message=("Author: Mark Jackson\r\r"+
                                "Technical Animation Director\r\r"+
                                "Contact me at [email protected] for more information\r\r"+
                                "thanks for trying the toolset. If you have any\r"+
                                "suggestions or bugs please let me know!"),
                       button=['thankyou','ChangeLog'],messageAlign='center')
    if result == 'ChangeLog':
        import Red9.core.Red9_General as r9General  # lazy load
        r9General.os_OpenFile(os.path.join(red9ModulePath(),'changeLog.txt'))
开发者ID:Bumpybox,项目名称:Tapp,代码行数:11,代码来源:setup.py

示例11: get_pro_pack

def get_pro_pack(*args):
    try:
        #new pro_pack build calls
        import Red9.pro_pack.r9pro as r9pro
        r9pro.r9import('r9wtools')
        import r9wtools
        r9wtools.MailRegistration().show()
    except:
        #legacy
        import Red9.core.Red9_General as r9General  # lazy load
        result=cmds.confirmDialog(title='Red9_StudioPack : build %f' % red9_getVersion(),
                            message=("Red9_ProPack Not Installed!\r\r"+
                                     "Contact [email protected] for more information"),
                            button=['Red9Consultancy.com','Get_Pro','Close'],messageAlign='center')
        if result == 'Get_Pro':
            log.warning('Red9 ProPack systems not yet available - watch this space!')
        if result =='Red9Consultancy.com':
            r9General.os_OpenFile('http://red9consultancy.com/')
开发者ID:xavMikeHoward,项目名称:Red9_StudioPack,代码行数:18,代码来源:setup.py

示例12: red9ContactInfo

def red9ContactInfo(*args):
    import Red9.core.Red9_General as r9General  # lazy load

    result = cmds.confirmDialog(
        title="Red9_StudioPack : build %f" % red9_getVersion(),
        message=(
            "Author: Mark Jackson\r\r"
            + "Technical Animation Director\r\r"
            + "Contact me at [email protected] for more information\r\r"
            + "thanks for trying the toolset. If you have any\r"
            + "suggestions or bugs please let me know!"
        ),
        button=["Red9Consultancy.com", "ChangeLog", "Close"],
        messageAlign="center",
    )
    if result == "ChangeLog":
        r9General.os_OpenFile(os.path.join(red9ModulePath(), "changeLog.txt"))
    if result == "Red9Consultancy.com":
        r9General.os_OpenFile("http://red9consultancy.com/")
开发者ID:charliewales,项目名称:Red9_StudioPack,代码行数:19,代码来源:setup.py

示例13: red9_blog

def red9_blog(*args):
    '''
    open up the Red9 Blog
    '''
    import Red9.core.Red9_General as r9General  # lazy load
    r9General.os_OpenFile('http://red9-consultancy.blogspot.com/')
开发者ID:xavMikeHoward,项目名称:Red9_StudioPack,代码行数:6,代码来源:setup.py

示例14: test_bwav_handler

    def test_bwav_handler(self):
        '''
        test the bwav handler and formatting of the data
        '''
        assert self.audioNode.isBwav()
        # print self.audioNode.bwav_timecodeFormatted()
        cmds.currentUnit(time='ntscf')
        assert r9General.getCurrentFPS() == 60
        print 'ntscf' , self.audioNode.bwav_timecodeFormatted()
        assert self.audioNode.bwav_timecodeFormatted() == '01:26:04:11'
        cmds.currentUnit(time='pal')
        assert r9General.getCurrentFPS() == 25
        # print 'pal : ', self.audioNode.bwav_timecodeFormatted()
        assert self.audioNode.bwav_timecodeFormatted() == '01:26:04:05'
        # print self.audioNode.bwav_timecodeFormatted(smpte=False)
        assert self.audioNode.bwav_timecodeFormatted(smpte=False) == '01:26:04:172'
        assert self.audioNode.bwav_timecodeReference() == 227739993
        assert self.audioNode.bwav_timecodeMS() == 5164172.1768707484

        # need to get the bWav header to bind it to the var
        self.audioNode.bwav_getHeader()
        assert self.audioNode.bwav_HeaderData == {'AudioFormat': 0,
                                                 'BextVersion': 0,
                                                 'BitsPerSample': 0,
                                                 'ChunkSize': 732516,
                                                 'Description': 'This is a unitTest file for validating the Red9 broadcast wav extraction of metaData',
                                                 'Format': 'WAVE',
                                                 'InternalFormat': 'fmt ',
                                                 'OriginationDate': '2014-03-03',
                                                 'OriginationTime': '10:00:00',
                                                 'Originator': 'Pro Tools',
                                                 'OriginatorReference': 'ffgDDffdhgff',
                                                 'Subchunk1Size': 16,
                                                 'TimeReference': 227739993,
                                                 'TimeReferenceHigh': 0}
开发者ID:markj3d,项目名称:Red9_StudioPack,代码行数:35,代码来源:Red9_AudioTest.py

示例15: test_basics

 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,代码行数:8,代码来源:Red9_AudioTest.py


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