本文整理汇总了Python中pymel.core.checkBox函数的典型用法代码示例。如果您正苦于以下问题:Python checkBox函数的具体用法?Python checkBox怎么用?Python checkBox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了checkBox函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: multi_BasicSettings
def multi_BasicSettings():
# Basic Settings
pm.text(l='', h=5)
multi_nameField = pm.textFieldGrp('hp3dNameField', l='Name', text='', cw=[2, 150], cc=fun.partial(multi_nameChange, 'hp3dNameField'), fcc=True)
pm.rowColumnLayout(nc=2)
pm.text(l='Basic Settings', w=75, al='left', en=False)
pm.separator(w=marginWidth-75, h=14)
pm.setParent(multiLight_layout)
multi_color = pm.colorSliderGrp('hp3dColorSlider', label='Color', rgb=(1, 1, 1), cw=[3, 20], dc=fun.partial(multi_colorChange, '.color', 'all', 'hp3dColorSlider'))
multi_intensity = pm.floatSliderGrp('hp3dIntensitySlider', label='Intensity', field=True, v=1.000, fmx=1000000000, pre=3, cw=[3, 20], dc=fun.partial(multi_floatChange, '.intensity', 'all', 'hp3dIntensitySlider'))
# pm.text(l='', h=3) # GUI SPACER
pm.rowColumnLayout(nc=2)
pm.text(l='', w=142) # GUI SPACER
global multi_illDefault_box
multi_illDefault_box = pm.checkBox(l='Illuminates by Default', v=1, cc=multi_illDefault)
pm.setParent(multiLight_layout)
pm.rowColumnLayout(nc=3)
pm.text(l='', w=142) # GUI SPACER
multi_emitDiff_box = pm.checkBox('hp3dEmitDiffCheckbox', l='Emit Diffuse', v=1, w=120, cc=fun.partial(multi_checkboxChange, '.emitDiffuse', 'all', 'hp3dEmitDiffCheckbox'))
multi_emitSpec_box = pm.checkBox('hp3dEmitSpecCheckbox', l='Emit Specular', v=1, cc=fun.partial(multi_checkboxChange, '.emitSpecular', 'all', 'hp3dEmitSpecCheckbox'))
pm.setParent(multiLight_layout)
pm.rowColumnLayout(nc=3)
pm.text(l='Decay Rate', w=140, al='right')
pm.text(l='', w=3)
multi_decayRate_menu = pm.optionMenu('hp3dDecayRateMenu', bgc=primary_componentColor, cc=fun.partial(multi_menuChange, '.decayRate', 'not directional', 'hp3dDecayRateMenu'))
pm.menuItem(l='No Decay', da=0)
pm.menuItem(l='Linear', da=1)
pm.menuItem(l='Quadratic', da=2)
pm.menuItem(l='Cubic', da=3)
pm.setParent(multiLight_layout)
示例2: doExecution
def doExecution(*args):
is_find = pm.checkBox( UI_name[0], q=True, value=True )
is_fix = pm.checkBox( UI_name[1], q=True, value=True )
is_fixLayer = pm.checkBox( UI_name[2], q=True, value=True )
shader_info_all_layers = []
if( is_find ):
findErrorShape()
if( is_fixLayer ):
#// collect shaders info in each layer
shader_info_all_layers = collectShaderInfoInLayer()
if( is_fix ):
fixComponentShading()
if( is_fixLayer ):
for shd_layer in shader_info_all_layers:
#// switch to a specified layer
curr_layer = shd_layer[0]
pm.editRenderLayerGlobals( currentRenderLayer=curr_layer )
#// parsing string for mesh & shader from list
#// assign shader to mesh from list
for shd in shd_layer[1]:
obj = shd[0]
SG = shd[1]
pm.sets( SG, edit=True, forceElement=obj )
pm.editRenderLayerGlobals( currentRenderLayer='defaultRenderLayer' )
return 1
示例3: __init__
def __init__(self):
title = 'pbRenderableCurve'
version = 1.02
if pm.window('pbRCurve', exists=True):
pm.deleteUI('pbRCurve')
with pm.window('pbRCurve', title='{0} | {1}'.format(title, version), s=False) as window:
with pm.columnLayout():
with pm.frameLayout(l='Selection:', cll=True, bs='out'):
with pm.columnLayout():
self.selField = pm.textFieldGrp(text='No Curves Selected', ed=False, l='Curve:', cw2=[72, 192])
with pm.rowLayout(nc=2):
self.bRenderable = pm.checkBox(l='Renderable', cc=self.bcRenderable)
with pm.frameLayout(l='Mesh Settings:', cll=True, bs='out') as self.meshUI:
with pm.columnLayout():
with pm.rowLayout(nc=4):
self.useNormal = pm.checkBox(l='Use Normal', cc=self.bcUseNormal)
self.normalVector = [pm.intField(width=62, en=False, value=0, cc=self.setNormal),
pm.intField(width=62, en=False, value=1, cc=self.setNormal),
pm.intField(width=62, en=False, value=0, cc=self.setNormal)]
self.meshAttrs = [AttrSlider(maxValue=128, name='Thickness', obj=getCurves, type_='float', fmn=0.0001),
AttrSlider(value=3, minValue=3, maxValue=64, name='Sides', obj=getCurves, fmn=3, fmx=100),
AttrSlider(minValue=1, maxValue=32, name='Samples', obj=getCurves, fmn=1, fmx=128)]
with pm.frameLayout('Shell Settings:', cll=True, bs='out') as self.shellUI:
with pm.columnLayout():
self.bShell = pm.checkBox(l='Enable Shell', cc=self.bcShell)
self.shellAttrs = [AttrSlider(value=1, minValue=-64, maxValue=64, name='ShellThickness', obj=getCurves, type_='float'),
AttrSlider(value=1, minValue=1, maxValue=64, name='ShellDivisions', obj=getCurves, fmn=1, fmx=32)]
window.show()
pm.scriptJob(event=['SelectionChanged', self.refresh], protected=True, p=window)
self.refresh()
示例4: UI_custom
def UI_custom(self):
numJoints = len(self.jointInfo)
pm.rowLayout(numberOfColumns = 2, columnWidth = [1, 100], adjustableColumn = 2)
pm.text(label = "Number of Joints: ")
self.numberOfJointsField = pm.intField(value = numJoints, minValue = 2, changeCommand = self.ChangeNumberOfJoints)
pm.setParent('..')
joints = self.GetJoints()
self.CreateRotationOrderUIControl(joints[0])
pm.separator(style = 'in')
pm.text(label = "Orientation: ", align = "left")
pm.rowLayout(numberOfColumns = 3)
pm.attrEnumOptionMenu(attribute = "%s:module_grp.sao_local" %self.moduleNamespace, label = "Local: ")
pm.text(label = " will be oriented to ")
pm.attrEnumOptionMenu(attribute = "%s:module_grp.sao_world" %self.moduleNamespace, label = "World: ")
pm.setParent('..')
pm.separator(style = 'in')
interpolating = False
if pm.objExists("%s:interpolation_container" %self.moduleNamespace):
interpolating = True
pm.rowLayout(numberOfColumns = 2, columnWidth = [1, 80], adjustableColumn = 2)
pm.text(label = "Interpolate: ")
pm.checkBox(label = "", value = interpolating, onCommand = partial(self.SetupInterpolation, True), offCommand = self.DeleteInterpolation)
示例5: __init__
def __init__(self, opts):
self.opts = opts
with pm.frameLayout('Export Meshes (.FBX)', collapsable=True, cl=False, bs='out'):
with pm.columnLayout(width=250):
pm.text(l='Export List:')
pm.separator(height=4)
self.meshList = pm.textScrollList(height=250, width=250, ams=True, dkc=self._remove)
with pm.rowColumnLayout(nc=3, cw=[(1, 82), (2, 82), (3, 82)]):
pm.button(l='Add', c=self._add)
pm.button(l='Remove', c=self._remove)
pm.button(l='Clear', c=self._clear)
with pm.rowColumnLayout(nc=2, cw=[(1, 124), (2,124)]):
self.prefix = pm.checkBox(label='Prefix', value=self.opts['prefix'], cc=self.save)
self.suffix = pm.checkBox(label='Suffix', value=self.opts['suffix'], cc=self.save)
self.prefix_text = pm.textField(en=self.prefix.getValue(), text=self.opts['prefix_text'], cc=self.save)
self.suffix_text = pm.textField(en=self.suffix.getValue(), text=self.opts['suffix_text'], cc=self.save)
pm.text(l='Export Path:')
with pm.rowColumnLayout(nc=2, cw=[(1, 215), (2, 32)]):
self.fbxPath = pm.textField(text=self.opts['fbxPath'], cc=self._pathRefreash)
pm.button(l='...', c=self._path)
with pm.rowColumnLayout(nc=3):
self.center = pm.checkBox(label='Move to Orgin', v=self.opts['center'], cc=self.save)
self.child = pm.checkBox(label='Export Childern', v=self.opts['child'], cc=self.save)
pm.button(l='FBXPreset', c=self._fbxPreset)
with pm.rowColumnLayout(nc=2, cw=[(1, 124), (2, 124)]):
pm.button(l='Selected', c=self._selected)
pm.button(l='All', c=self._all)
self._refresh()
示例6: __init__
def __init__(self):
respresets = [4096, 2048, 1024, 512, 256, 128, 64, 32]
with pm.frameLayout(l='Options', cll=True, cl=False, bs='out'):
with pm.columnLayout():
pm.text('Map Size:')
pm.separator(st='in', width=160, height=8)
with pm.rowColumnLayout(nc=3, cw=[20, 60]):
pm.text(l='Width:')
self.width = pm.intField(v=1024, width=42)
with pm.optionMenu():
for i in respresets:
pm.menuItem(l=i)
pm.text(l='Height:')
self.height = pm.intField(v=1024, width=42)
with pm.optionMenu():
for i in respresets:
pm.menuItem(l=i)
pm.button(l='Get Map Size')
pm.separator(st='in', width=160, height=8)
with pm.columnLayout():
self.compSpace = pm.checkBox(l='Retain Component Spaceing',
cc=lambda *args: pm.texMoveContext('texMoveContext', e=True,
scr=self.compSpace.getValue()),
v=pm.texMoveContext('texMoveContext', q=True, scr=True))
self.pixelUnits = pm.checkBox(l='Transform In Pixels')
示例7: __init__
def __init__(self):
'''
# class to sort and give info on shaders
'''
self.layout = pm.rowColumnLayout(numberOfColumns= 3, columnWidth=([1, 150],
[2, 150], [3, 250]))
pm.columnLayout()
pm.text(label= 'Shaders')
self.shader_list = pm.textScrollList(width= 150, height= 200,
selectCommand= pm.Callback(self.update_connections_list))
pm.button(label= 'Refresh', width= 150,
command= pm.Callback(self.update_shader_list))
pm.setParent(self.layout)
pm.columnLayout()
pm.text(label='Connections')
self.connections_list = pm.textScrollList(width= 150, height= 200,
selectCommand= pm.Callback(self.write_info))
self.check_box = pm.checkBox(label= 'Select Node')
pm.setParent(self.layout)
pm.columnLayout()
pm.text(label='Node Info')
self.info_field = pm.scrollField(wordWrap= True, width= 250, height= 200)
self.attr_check_box = pm.checkBox(label= 'Show All')
self.update_shader_list()
示例8: get_check_box_states_and_run
def get_check_box_states_and_run(*args, **kwargs):
"""Gets the data from UI and runs the script
"""
freeze = pm.checkBox("FBJ_checkBox1", q=True, v=True)
apply_to_children = pm.checkBox("FBJ_checkBox2", q=True, v=True)
selection_list = pm.ls(sl=1, type="joint")
do_fix(selection_list, freeze, apply_to_children)
pm.select(selection_list)
示例9: lcObj_exportObjs
def lcObj_exportObjs(*args, **kwargs):
''' Export .obj files from selected geometry, either as one combined file or as individual files per object. Will recognize and convert poly smooth preview to geometry for export '''
global prefix
path = pm.textField(prefix+'_textField_export_path', query=True, text=True)
objPrefix = pm.textField(prefix+'_textField_prefix', query=True, text=True)
if objPrefix:
objPrefix+='_'
if path:
sel = pm.ls(sl=True)
if sel:
sel = geometry.filterForGeometry(sel)
print sel
#undo is the easiest way to work on geometry temporarily
pm.undoInfo(openChunk=True)
if pm.checkBox(prefix+'_checkBox_use_smooth', query=True, v=True):
for obj in sel:
pm.select(obj)
#find the objects currently displayed as smooth and create converted poly copies
if pm.displaySmoothness(q=True, polygonObject=True)[0] == 3:
pm.mel.performSmoothMeshPreviewToPolygon()
if pm.checkBox(prefix+'_checkBox_export_indi', query=True, v=True):
#export objects individually
for obj in sel:
pm.select(obj)
name = str(obj)
exportString = path+'/'+objPrefix+name+'.obj'
pm.exportSelected(exportString, force=True, options='groups=1;ptgroups=1;materials=0;smoothing=1;normals=1', type='OBJexport', pr=True, es=True)
else:
#export as one object
pm.select(sel)
name = ''
while name == '':
dialog = pm.promptDialog(title='OBJ Name', message='Enter Name:', button=['OK', 'Cancel'], defaultButton='OK', cancelButton='Cancel', dismissString='Cancel')
if dialog == 'OK':
name = pm.promptDialog(query=True, text=True)
if name:
exportString = path+'/'+objPrefix+name+'.obj'
pm.exportSelected(exportString, force=True, options='groups=1;ptgroups=1;materials=0;smoothing=1;normals=1', type='OBJexport', pr=True, es=True)
else:
pm.warning("You didn't type a name for your obj")
if dialog == 'Cancel':
break
pm.undoInfo(closeChunk=True)
pm.undo()
pm.select(clear=True)
else:
pm.warning('Did you specify a path?')
示例10: value
def value(self, value=None):
"""returns or set the check box value
"""
from pymel.core import checkBox
if value is not None:
# set the value
checkBox(self, e=1, v=value)
else:
# get the value
return checkBox(self, q=1, v=1)
示例11: create
def create(self):
self.main_layout = pm.columnLayout(adjustableColumn= True, width= 400)
main_frame = pm.frameLayout( label='%s' % (self.light), collapsable= True)
pm.frameLayout( label='Light Attributes', collapsable= True)
pm.attrColorSliderGrp( at='%s.color' % (self.light), columnWidth4= [100, 75, 175, 50])
pm.attrFieldSliderGrp(at='%s.intensity' % (self.light), columnWidth4= [100, 75, 175, 50])
pm.attrFieldSliderGrp(at='%s.coneAngle' % (self.light), columnWidth4= [100, 75, 175, 50])
pm.attrFieldSliderGrp(at='%s.penumbraAngle' % (self.light), columnWidth4= [100, 75, 175, 50])
pm.attrFieldSliderGrp(at='%s.dropoff' % (self.light), columnWidth4= [100, 75, 175, 50])
pm.attrEnumOptionMenu( label='Decay Rate', attribute='%s.decayRate' % (self.light) )
pm.setParent(main_frame)
pm.frameLayout(label= 'Shadows', collapsable= True)
pm.attrColorSliderGrp( at='%s.shadowColor' % (self.light),
columnWidth4= [100, 75, 175, 50])
self.check_box = pm.checkBox(label= 'Use Ray Trace Shadows',
changeCommand= pm.Callback(self.shadows))
self.light_radius = pm.attrFieldSliderGrp( at='%s.lightRadius' % (self.light),
enable= False, columnWidth4= [100, 75, 175, 50])
self.shadow_rays = pm.attrFieldSliderGrp( at='%s.shadowRays' % (self.light),
enable= False, columnWidth4= [100, 75, 175, 50])
self.ray_depth = pm.attrFieldSliderGrp( at='%s.rayDepthLimit' % (self.light),
enable= False, columnWidth4= [100, 75, 175, 50])
pm.setParent(main_frame)
pm.frameLayout(label= 'Decay Regions', collapsable= True)
# useDecayRegions
decay_regions_value = pm.getAttr('%s.useDecayRegions' % (self.light))
self.decay_check_box = pm.checkBox(label= 'Use Decay Regions',
value= decay_regions_value,
changeCommand= pm.Callback(self.chane_decay_regions))
pm.attrControlGrp(attribute= '%s.startDistance1' % (self.light))
pm.attrControlGrp(attribute= '%s.endDistance1' % (self.light))
pm.attrControlGrp(attribute= '%s.startDistance2' % (self.light))
pm.attrControlGrp(attribute= '%s.endDistance2' % (self.light))
pm.attrControlGrp(attribute= '%s.startDistance3' % (self.light))
pm.attrControlGrp(attribute= '%s.endDistance3' % (self.light))
pm.setParent(main_frame)
pm.rowColumnLayout(numberOfColumns= 2, columnWidth= [200, 200])
pm.button(label= 'Select Light', width= 200, command= pm.Callback(self.select))
pm.button(label= 'Save Preset', width= 200, command= pm.Callback(self.preset))
pm.button(label= 'Hide', command= pm.Callback(self.hide))
pm.button(label= 'Show', command= pm.Callback(self.show))
return self.main_layout
示例12: placeHighLight
def placeHighLight(*args):
### UI setup
global UI_name
UI_name = [ 'txtBtn_light', 'txtBtn_camera', 'txtBtn_object', 'txtBtn_HLitPoint', 'btn_placeHLit', 'chk_interaction' ]
if pm.window( 'winPlaceHLit', exists=True ):
pm.deleteUI( 'winPlaceHLit', window=True )
ui_layout['window'] = pm.window( 'winPlaceHLit', title='Place Highlight', sizeable=False, h=100, w=250 )
ui_layout['mainLayout'] = pm.columnLayout( columnAlign='left', columnAttach=['left', 0] )
#// get active camera
activeViewCamera = getActiveCam()
'''loc_light_probe = pm.createNode('locator', name='light_probe')
pm.lockNode(loc_light_probe, lock=False)'''
#// sub layout
#// sub1
ui_layout['ui_sub1'] = pm.rowLayout(nc=2, cw=[(1, 210), (2, 40)], p=ui_layout['mainLayout'] )
pm.textFieldButtonGrp( UI_name[0], label='Light: ', text='', buttonLabel='Pick',editable=False, buttonCommand='pickLit()', cw=[(1,50), (2,120), (3,40)], p=ui_layout['ui_sub1'] )
pm.button( 'btn_sel_light' ,label='Sel', command=pm.Callback( doSelItem, UI_name[0] ), p=ui_layout['ui_sub1'] )
#// sub2
ui_layout['ui_sub2'] = pm.rowLayout(nc=2, cw=[(1, 210), (2, 40)], p=ui_layout['mainLayout'] )
pm.textFieldButtonGrp( UI_name[1], label='Camera: ', text=activeViewCamera, buttonLabel='Pick', editable=False, buttonCommand='pickCam()', cw=[(1,50), (2,120), (3,40)], p=ui_layout['ui_sub2'] )
pm.button( 'btn_sel_camera' ,label='Sel', command=pm.Callback( doSelItem, UI_name[1] ), p=ui_layout['ui_sub2'] )
#// sub3
ui_layout['ui_sub3'] = pm.rowLayout(nc=2, cw=[(1, 210), (2, 40)], p=ui_layout['mainLayout'] )
pm.textFieldButtonGrp( UI_name[2], label='Object: ', text='', buttonLabel='Pick', editable=False, buttonCommand='pickTgtObj()', cw=[(1,50), (2,120), (3,40)], p=ui_layout['ui_sub3'] )
pm.button( 'btn_sel_obj' ,label='Sel', command=pm.Callback( doSelItem, UI_name[2] ), p=ui_layout['ui_sub3'] )
#// sub4
ui_layout['ui_sub4'] = pm.rowLayout(nc=2, cw=[(1, 210), (2, 40)], p=ui_layout['mainLayout'] )
pm.textFieldButtonGrp( UI_name[3], label='Point: ', text='', buttonLabel='Pick', editable=False, buttonCommand='pickHLitPt()', cw=[(1,50), (2,120), (3,40)], p=ui_layout['ui_sub4'] )
pm.button( 'btn_sel_point' ,label='Sel', command=pm.Callback( doSelItem, UI_name[3] ), p=ui_layout['ui_sub4'] )
#// sub5
ui_layout['ui_sub5'] = pm.rowLayout(nc=2, cw=[(1, 70), (2, 50)], p=ui_layout['mainLayout'] )
pm.button( UI_name[4] ,label='Place Light!', command='doPlaceHLight()', p=ui_layout['ui_sub5'] )
pm.checkBox( UI_name[5], label='interactive mode', onCommand=pm.Callback( doInteractionON ), offCommand=pm.Callback( doInteractionOFF ), p=ui_layout['ui_sub5'] )
pm.showWindow( ui_layout['window'] )
pm.spaceLocator( name='light_probe' )
pm.lockNode( 'light_probe', lock=True )
pm.textFieldButtonGrp( 'txtBtn_HLitPoint', edit=True, text='light_probe' )
#// clean make live and scriptJob after exit script
pm.scriptJob( uiDeleted=[ ui_layout['window'], pm.Callback( flushScript ) ] )
示例13: checkbox_state
def checkbox_state(*args):
check_cnt = 0
while pm.checkBox('%s%s' % ('shotCheckBox', str(check_cnt)), ex=1):
check_cnt += 1
for k in range(0, check_cnt):
state = pm.checkBox('shotCheckBox%s' % str(k), q=1, v=1)
if not state:
pm.textField('%s%s' % (shot_num_name, str(k)), e=1, en=0)
pm.textField('%s%s' % (shot_name_name, str(k)), e=1, en=0)
else:
pm.textField('%s%s' % (shot_num_name, str(k)), e=1, en=1)
pm.textField('%s%s' % (shot_name_name, str(k)), e=1, en=1)
示例14: toggleEnable
def toggleEnable(control, *args):
# Get the state of the control
state = pc.checkBox(uiWidgets[control], q=1, enable=1)
if (state):
# If enabled, we grey it
state = pc.checkBox(uiWidgets[control], edit=1, enable=0)
# Button update
pc.button(uiWidgets[control+'Button'], edit=1, label='Unlock')
else:
state = pc.checkBox(uiWidgets[control], edit=1, enable=1)
pc.button(uiWidgets[control+'Button'], edit=1, label='Lock')
示例15: __init__
def __init__(self, title, widthHeight, tabs_names, frameLayoutPerTab, collapseStyle=0, descr=''):
super(Exporter, self).__init__(title, widthHeight, tabs_names, frameLayoutPerTab)
self.localProject = os.environ[ 'MAYA_PROJECT' ]
self.localUser=os.environ[ 'USER' ]
self.path = os.path.join(self.localProject+ "/export/GEO")
self.scene_name = cmds.file(q=True, sn=True, shn=True).split('.')[0]
self.folder_path = os.path.join(self.path, 'OBJ', self.localUser, self.scene_name)
self.type = 'OBJ'
self.extension = 'obj'
self.curFr=1001
# GUI BUILDING #
self.fl = self.frameLayouts[0][0].columnLayout
col = pm.columnLayout(p=self.fl, h=self.wh[1]/2)
flow_1=pm.flowLayout(p=col, w=self.wh[0])
self.type_om = win.AW_optionMenu(label="File Type",
options=['OBJ','ZBRUSH', 'MUDBOX', 'FBX', 'MB', 'MA', 'ALEMBIC'],
parent=flow_1,
cc=self._updateDirectory)
self.autoCheck = pm.checkBox(l='Auto-detect Folder', p=flow_1, v=1)
pm.flowLayout(p=col, w=self.wh[0])
pm.text(l='Directory:')
self.path_tf=pm.textField(w=self.wh[0]/1.3,cc=self._update_path_tf)
pm.button(label='Browse',w=80, c=self._browser, bgc=self.col_fls[1])
self.path_tf.setText(self.folder_path)
flow_3 = pm.flowLayout(w=self.wh[0], p=col)
self.combined_cb = pm.checkBox(l='Export Per Object', v=1, cc=self._change_combined_cb, p=flow_3)
pm.text(l='Combined Name:',p=flow_3,w=200)
self.combined_tf = pm.textField(tx='', p=flow_3,w=300, editable=False)
flow_4 = pm.flowLayout(w=self.wh[0],p=col)
self.framesCheck = pm.checkBox(l='Frame Range', w=200,p=flow_4, v=0, cc=self._framesCallback)
self.fr_st = pm.textField(editable=False,w=100,tx=str(int(pm.playbackOptions(ast=True, q=True))),p=flow_4)
self.fr_end = pm.textField(editable=False,w=100,tx=str(int(pm.playbackOptions(aet=True, q=True))),p=flow_4)
pm.text(l='\n', p=col)
flow_col = pm.flowLayout(p=col, w=self.wh[0])
col_1 = pm.columnLayout(p=flow_col, w=self.wh[0]/2)
col_2 = pm.columnLayout(p=flow_col, w=self.wh[0]/2)
self.export_btn = pm.button(label='Export', bgc=self.col_fls[4], c=self._export, p=col_1, w=self.wh[0]/4)
flow_5 = pm.flowLayout(w=self.wh[0],p=col_2)
self.recursiveCheck = pm.checkBox(l='Check all folders inside', v=1, p=flow_5)
self.list_btn = pm.button(label='List Files in Directory', bgc=self.col_fls[5], c=partial(self._getDirectoryFiles,True), p=flow_5, w=self.wh[0]/4)
self.import_btn = pm.button(label='Import Directory', bgc=self.col_fls[5], c=self._customImport, p=col_2, w=self.wh[0]/2.5)
pm.text(l='\n',p=col)
pm.button(label='Swap Namespace with Name', bgc=self.col_fls[6], c=self._swapNamespace, p=col_2,w=self.wh[0]/2.5)