def build():
        if mc.window( 'CreatParticleWin', ex=1 ): mc.deleteUI( 'CreatParticleWin' )
        if mc.windowPref( 'CreatParticleWin', ex=1 ): mc.windowPref( 'CreatParticleWin', remove=1 )
        mc.window( 'CreatParticleWin', t=u'快速创建尾随粒子', wh=(350, 60), menuBar=True)
        mc.formLayout('myFormLayout', numberOfDivisions=100)
        #mc.columnLayout(columnAttach=('both', 5), adj=0)
        mc.button('creatButton', l=u'创建粒子', )
        mc.colorIndexSliderGrp( 'myColorIndex', label=u'拾取颜色', min=0, max=20, value=10 )
        mc.rowLayout( 'myRowLayout', w=150, numberOfColumns=2, columnWidth2=(10, 85), adjustableColumn=1, columnAlign=(1, 'right'), columnAttach=[(1, 'both', 0), (2, 'left', 0)] )
        mc.text('numParticle', l=u'粒子数量')
        mc.intField('numText', w=55)
        mc.formLayout('myFormLayout', e=1, attachForm=[('creatButton', 'top', 5), ('creatButton', 'left', 5), ('myColorIndex', 'left', -90), ('myColorIndex', 'bottom', 5),('myColorIndex', 'right', 5), ('myRowLayout', 'top', 5) ], attachControl=[('creatButton', 'bottom', 5, 'myColorIndex'), ('myRowLayout', 'bottom', 5, 'myColorIndex'), ('myRowLayout', 'left', -15, 'creatButton')], attachPosition=[('creatButton', 'right', 5, 25), ('myRowLayout', 'left', 15, 10)],attachNone=('myRowLayout', 'top') )
        #mc.setParent( '..' )
        #mc.setParent( '..' )
        mc.showWindow('CreatParticleWin')