You are on page 1of 1

mport maya.

OpenMaya as om
import maya.OpenMayaUI as omui
import maya.cmds as mc
import math
import maya.api.OpenMaya as OpenMaya
import maya.mel as mel
import re
from collections import OrderedDict
import random

def jwSpeedCutUI():
if mc.window("jwSpeedCutWin", exists = True):
mc.deleteUI("jwSpeedCutWin")
if mc.dockControl('speedCutDock',q=1,ex=1):
mc.deleteUI('speedCutDock',control=1)

mayaHSize = mc.window('MayaWindow', q=1, h=1)


jwSpeedCutWin = mc.window("jwSpeedCutWin",title = "speedCut 1.69", mxb = False,
s = 1 ,bgc = [0.2, 0.2, 0.2 ])
mc.tabLayout(tv = 0)
mc.columnLayout(adj=1)
mc.rowColumnLayout(nc= 4 ,cw=[(1,180),(2,30),(3,30),(4,30)])
mc.text(l ='')
mc.button('SCminFrame', l= "1", c = 'SCUI("min")', bgc = [0.24, 0.5, 0.2 ] )
mc.button('SCmidFrame', l= "2", c = 'SCUI("mid")', bgc = [0.2 ,0.4, 0.5 ] )
mc.button('SCmaxFrame', l= "3", c = 'SCUI("max")', bgc = [0.45, 0.2, 0.5 ] )
mc.setParent( '..' )
mc.scrollLayout('SCScrol',h=(mayaHSize*0.95))
mc.columnLayout()
mc.frameLayout('meshSetupFrame', cll= 1, cl= 0, label= "Mesh Setup" , bgc
=[0.14,0.14,0.14] , w= 300)
mc.rowColumnLayout(nc= 4 ,cw=[(1,70),(2,140),(3, 5),(4,80)])
mc.text(l ='Base Mesh')
mc.optionMenu('baseMeshMenu', bgc =[0.28,0.28,0.28], bsp
='checkBaseMeshList()' ,cc='loadSymmetryState(),cageVisToggle(),showAllCutter(),upd
ateVisLayer(),updateSnapState(),fadeOutCage(),rdMirrorUIUpdate()')
mc.menuItem("NoBaseMeshMenu", label='No Base Mesh' )
mc.text(l ='')
mc.button('setBaseButton', l= "Set", c =
'checkBaseMeshList(),setCutterBaseMesh(),baseMeshColorUpdate(),updateVisLayer()' ,
bgc = [0.28,0.28,0.28] )
mc.setParent( '..' )

mc.rowColumnLayout(nc= 9 ,cw=[(1,70),(2,5),(3,30),(4,5),(5,30),(6,5),(7,65),(8,
5),(9,80)])
mc.text(l ='')
mc.text(l ='')
mc.iconTextButton('meshLayerButton', h = 20, w = 30, c = 'toggleLayer()',
style='iconOnly', image1= 'nodeGrapherModeAll.svg' )
mc.text(l ='')
mc.iconTextButton('meshColorUpdateButton', h = 20, w = 30, c =
'baseMeshColorUpdate()', style='iconOnly', image1= 'out_colorComposite_200.png' )
mc.text(l ='')
mc.button('reTargetButton', l= "reTarget", c = 'reTarget()', bgc =
[0.28,0.28,0.28] )
mc.text(l ='')
mc.button('freeResultButton', l= "Finalize", c = 'freeResultMesh()', bgc =
[0.28,0.28,0.28] )

You might also like