예제 #1
0
    def showAbout(self):
        window = mc.window(title="About",
                           iconName='About',
                           ut='cgmUITemplate',
                           resizeToFitChildren=True)
        mc.columnLayout(adjustableColumn=True)
        guiFactory.header(self.toolName, overrideUpper=True)
        mc.text(label='>>>A Part of the cgmTools Collection<<<',
                ut='cgmUIInstructionsTemplate')
        guiFactory.headerBreak()
        guiFactory.lineBreak()
        descriptionBlock = guiFactory.textBlock(self.description)

        guiFactory.lineBreak()
        mc.text(label=('%s%s' % ('Written by: ', self.author)))
        mc.text(label=('%s%s%s' % ('Copyright ', self.owner, ', 2011')))
        guiFactory.lineBreak()
        mc.text(label='Version: %s' % self.version)
        mc.text(label='')
        guiFactory.doButton(
            'Visit Website',
            'import webbrowser;webbrowser.open("http://www.cgmonks.com")')
        guiFactory.doButton(
            'Close', 'import maya.cmds as mc;mc.deleteUI(\"' + window +
            '\", window=True)')
        mc.setParent('..')
        mc.showWindow(window)
예제 #2
0
	def showAbout(self):
		window = mc.window( title="About", iconName='About', ut = 'cgmUITemplate',resizeToFitChildren=True )
		mc.columnLayout( adjustableColumn=True )
		guiFactory.header(self.toolName,overrideUpper = True)
		mc.text(label='>>>A Part of the cgmTools Collection<<<', ut = 'cgmUIInstructionsTemplate')
		guiFactory.headerBreak()
		guiFactory.lineBreak()
		descriptionBlock = guiFactory.textBlock(self.description)

		guiFactory.lineBreak()
		mc.text(label=('%s%s' %('Written by: ',self.author)))
		mc.text(label=('%s%s%s' %('Copyright ',self.owner,', 2011')))
		guiFactory.lineBreak()
		mc.text(label='Version: %s' % self.version)
		mc.text(label='')
		guiFactory.doButton('Visit Tool Webpage', 'import webbrowser;webbrowser.open(" http://www.cgmonks.com/tools/maya-tools/locinator/")')
		guiFactory.doButton('Close', 'import maya.cmds as mc;mc.deleteUI(\"' + window + '\", window=True)')
		mc.setParent( '..' )
		mc.showWindow( window )