def bind_pro_audio(): ''' This is a wrap to import the pro_audio extensions. We have to lazy load this to avoid cyclic issues in the boot and wrapping it like this makes it easy to consume in the classes ''' if r9Setup.has_pro_pack(): try: import Red9.pro_pack.core.audio as r9paudio # dev mode only ;) except: from Red9.pro_pack import r9pro r9pro.r9import('r9paudio') import r9paudio return r9paudio
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/')
def timecodeHud(self,*args): ''' PRO_PACK ''' if r9Setup.has_pro_pack(): try: import Red9.pro_pack.core.metadata_pro as r9pmeta # dev mode only ;) except: from Red9.pro_pack import r9pro r9pro.r9import('r9pmeta') import r9pmeta else: log.warning('Timecode is ONLY supported in ProPack...') nodes=cmds.ls(sl=True) if nodes: tcHUD=r9pmeta.MetaTimeCodeHUD() for node in nodes: tcHUD.addMonitoredTimecodeNode(node) tcHUD.drawHUD()
def timecodeHud(self, *args): ''' PRO_PACK ''' if r9Setup.has_pro_pack(): try: import Red9.pro_pack.core.metadata_pro as r9pmeta # dev mode only ;) except: from Red9.pro_pack import r9pro r9pro.r9import('r9pmeta') import r9pmeta else: log.warning('Timecode is ONLY supported in ProPack...') nodes = cmds.ls(sl=True) if nodes: tcHUD = r9pmeta.MetaTimeCodeHUD() for node in nodes: tcHUD.addMonitoredTimecodeNode(node) tcHUD.drawHUD()