本文整理汇总了Python中maya.cmds.rowLayout函数的典型用法代码示例。如果您正苦于以下问题:Python rowLayout函数的具体用法?Python rowLayout怎么用?Python rowLayout使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rowLayout函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: createUI
def createUI (self, *pArgs):
if cmds.window(self.windowID, exists = True):
cmds.deleteUI(self.windowID)
# initialize window properties
cmds.window(self.windowID, title = 'cleanupUI', sizeable = True, resizeToFitChildren = True)
cmds.columnLayout(columnAttach = ('both', 5), columnWidth = 265)
cmds.rowLayout(numberOfColumns = 3, columnWidth3 = (80, 100, 80))
cmds.text(label = 'Threshold:', align = 'right', width = 80)
threshold = cmds.floatField(visible = True, minValue = 0.001, value = 0.1, width = 50, pre = 3, step = 0.01)
findFacesButton = cmds.button(label = 'findFaces', width = 70 , align = 'center')
cmds.setParent('..')
cmds.rowLayout(numberOfColumns = 1, columnWidth1 = (250))
cmds.text(label = 'List of shells with number of triangles:', align = "center", width = 230)
cmds.setParent('..')
cmds.rowLayout(numberOfColumns = 1, columnWidth1 = (250))
scrollList = cmds.textScrollList(width = 250)
cmds.setParent('..')
cmds.rowLayout(numberOfColumns = 1, columnWidth1 = (250))
progress = cmds.text(label = "Press 'Find' to calculate shells", align = 'left', width = 200, height = 10)
cmds.setParent('..')
cmds.button(findFacesButton, e = 1, command = partial(self.__findFacesCallback, threshold, progress))
cmds.rowLayout(numberOfColumns = 3, columnWidth3 = (80, 80, 80))
cmds.button(label = 'Find', command = partial(self.__applyCallback, threshold, scrollList, progress), width = 70 , align = 'center')
cmds.button(label = 'Select', command = partial(self.__applySelectCallback, scrollList, progress), width = 70, align = 'center')
cmds.button(label = 'Cancel', command = self.__cancelCallback, width = 70, align = 'center')
cmds.setParent('..')
cmds.showWindow()
示例2: __enter__
def __enter__(self):
'''
Initialize the UI
'''
if mc.window(self.name, exists=True):
mc.deleteUI(self.name)
mc.window(self.name, title='ml :: '+self.title, iconName=self.title, width=self.width, height=self.height, menuBar=self.menu)
if self.menu:
self.createMenu()
self.form = mc.formLayout()
self.column = mc.columnLayout(adj=True)
mc.rowLayout( numberOfColumns=2, columnWidth2=(34, self.width-34), adjustableColumn=2,
columnAlign2=('right','left'),
columnAttach=[(1, 'both', 0), (2, 'both', 8)] )
#if we can find an icon, use that, otherwise do the text version
if self.icon:
mc.iconTextStaticLabel(style='iconOnly', image1=self.icon)
else:
mc.text(label=' _ _ |\n| | | |')
if not self.menu:
mc.popupMenu(button=1)
mc.menuItem(label='Help', command=(_showHelpCommand(wikiURL+'#'+self.name)))
mc.text(label=self.info)
mc.setParent('..')
mc.separator(height=8, style='single')
return self
示例3: build
def build(self):
if mc.window( self.win, ex=1 ): mc.deleteUI( self.win )
if mc.windowPref( self.win, ex=1 ): mc.windowPref( self.win, remove=1 )
mc.window(self.win, title=self.title, wh=(410,378))
mc.columnLayout( 'mainColumn', adj=True )
mc.separator( h=10 )
mc.rowLayout( numberOfColumns=2, columnWidth2=(200, 200), columnAttach=[(1, "both", 5),(2 ,"both", 5)] )
mc.columnLayout( adj=True, columnAlign="center" )
mc.text( l=self.textsk )
self.skcharacterList = mc.textScrollList( numberOfRows=20, allowMultiSelection=True )
mc.setParent('..')
mc.columnLayout( adj=True, columnAlign="center" )
mc.text( l=self.textqp )
self.qpcharacterList = mc.textScrollList( numberOfRows=20, allowMultiSelection=True )
mc.setParent( '..' )
mc.setParent('..')
mc.separator ( h=10 )
mc.rowLayout( numberOfColumns=4, columnWidth4=(100, 100, 100, 100), columnAttach=[(1, "both", 1),(2 ,"both", 1), (3 ,"both", 1), (4 ,"both", 1)] )
mc.button( l=self.buttonsk, c=self.selSKItem )
mc.button( l=self.buttonAllSk, c=self.mainSK )
mc.button( l=self.buttonqp, c=self.selQPItem )
mc.button( l=self.buttonAllQp, c=self.mainQP )
mc.setParent('..')
mc.columnLayout( adj=True, columnAlign="center" )
mc.separator ( h=10 )
mc.setParent('..')
self.addSKList()
示例4: installFalloffGradient
def installFalloffGradient(self):
""""""
layout = cmds.frameLayout( "falloffLayout",
l='Falloff:',
cl=True,
cll=True,
mw=5,
mh=5,
ec=lambda *args: self.resizeMainWindow(),
cc=lambda *args: self.resizeMainWindow())
# Install falloff mode scroll List
cmds.rowLayout(nc=2, adj=1)
falloffMode = self.installFalloffOption()
resetBtn = cmds.button(l='Reset', c=lambda *args: self.resetFalloff(), w=40)
cmds.setParent( '..' )
# Install falloff gradient control
self.gradient = cmds.gradientControlNoAttr( 'falloffCurve', h=90)
self.copyFromMayaFalloffCurve()
cmds.gradientControlNoAttr( 'falloffCurve',
e=True,
optionVar='falloffCurveOptionVar',
changeCommand=lambda *args: self.changeSoftSelectValue(),
currentKeyChanged=lambda *args: self.softSelectCurveKeyChanged() )
# Install interpolation scroll List
interpolation = self.installInterpolationOption()
cmds.setParent( '..' )
return layout
示例5: transfertSelectionToTarget_window
def transfertSelectionToTarget_window():
"""
This definition creates the 'Transfert Selection To Target' main window.
"""
cmds.windowPref(enableAll=False)
if (cmds.window("transfertSelectionToTarget_window", exists=True)):
cmds.deleteUI("transfertSelectionToTarget_window")
cmds.window("transfertSelectionToTarget_window",
title="Transfert Selection To Target",
width=320)
spacing = 5
cmds.columnLayout(adjustableColumn=True, rowSpacing=spacing)
cmds.rowLayout(numberOfColumns=3, columnWidth3=(125, 150, 130), adjustableColumn=2, columnAlign=(2, "left"), columnAttach=[(1, "both", spacing), (2, "both", spacing), (3, "both", spacing)])
cmds.text(label="Target:")
sources_textField = cmds.textField("target_textField")
cmds.button("pickTarget_button", label="Pick Target!", command=pickTarget_button_OnClicked)
cmds.setParent(topLevel=True)
cmds.separator(style="single")
cmds.button("transfertSelection_button", label="Transfert Selection!", command=transfertSelection_button_OnClicked)
setUnsetContextHotkeys()
scriptJob = cmds.scriptJob(uiDeleted=("transfertSelectionToTarget_window", setUnsetContextHotkeys), runOnce=True)
cmds.showWindow("transfertSelectionToTarget_window")
cmds.windowPref(enableAll=True)
示例6: snapOnClosestVertex_window
def snapOnClosestVertex_window():
"""
Creates the 'Snap On Closest Vertex' vertex window.
"""
cmds.windowPref(enableAll=False)
if (cmds.window("snapOnClosestVertex_window", exists=True)):
cmds.deleteUI("snapOnClosestVertex_window")
cmds.window("snapOnClosestVertex_window",
title="Snap On Closest Vertex",
width=320)
spacing = 5
cmds.columnLayout(adjustableColumn=True, rowSpacing=spacing)
cmds.rowLayout(numberOfColumns=3, columnWidth3=(125, 150, 130), adjustableColumn=2, columnAlign=(2, "left"), columnAttach=[(1, "both", spacing), (2, "both", spacing), (3, "both", spacing)])
cmds.text(label="Reference Object:")
referenceObject_textField = cmds.textField("referenceObject_textField")
cmds.button("getReferenceObject_button", label="Get Reference Object!", command=getReferenceObject_button_OnClicked)
cmds.setParent(topLevel=True)
cmds.separator(style="single")
cmds.button("snapIt_button", label="Snap It!", al="center", command=snapIt_button_OnClicked)
cmds.showWindow("snapOnClosestVertex_window")
cmds.windowPref(enableAll=True)
示例7: startBlock
def startBlock(self,m=1,n=1):
#currently i will just make basic layou using the rawLayout
# columnWidth=[]
# for i in range(1,m):
# columnWidth.append([i,80])#[(1, 60), (2, 80), (3, 100)]
# cmds.rowColumnLayout(numberOfColumns=m,columnWidth=columnWidth)
# cmds.flowLayout(wr=True)
if not self.inNotebook and self.notebook is not None:
if self.afterNoteBook is None:
c=self.afterNoteBook = cmds.flowLayout(wr=True,p=self.form)
cmds.formLayout( self.form, edit=True, attachForm=((c, 'left', 0),(c, 'bottom', 0),
(c, 'right', 0)),attachControl = ((c,'top',5,self.notebook["id"])) )
if m==0:
c=cmds.flowLayout(wr=True,w=self.w*self.scale,p=self.afterNoteBook)
else :
c=cmds.rowLayout(numberOfColumns=m,w=self.w*self.scale,p=self.afterNoteBook)
else :
# if self.mainlayout is None:
# c=self.mainlayout = cmds.scrollLayout('scrollLayout',p=self.form)#cmds.flowLayout(wr=True,p=self.form)
# cmds.formLayout( self.form, edit=True, attachForm=((c, 'left', 0),(c, 'bottom', 0),
# (c, 'right', 0),(c, 'top', 0),) )
if m==0:
cmds.flowLayout(wr=True,w=self.w*self.scale)#,p=self.mainlayout)
else :
cmds.rowLayout(numberOfColumns=m,w=self.w*self.scale)#,p=self.mainlayout)
示例8: channelbox_command_freezeUI
def channelbox_command_freezeUI():
with sysCmd.Undo(0):
if cmds.window("freezeWindowBox", q=1, exists=1):
cmds.deleteUI("freezeWindowBox")
frz_window = cmds.window("freezeWindowBox", title="Freeze", rtf=1, s=0, tbm=1, tlb=1)
layout = cmds.columnLayout(p=frz_window)
layout_top = cmds.rowLayout(nc=4, p=layout)
width = 25
cmds.button(l="T", w=width, ann="Freeze Translate",
c=sysCmd.rpartial(channelbox_command_freezeTranslate, "", "", "Freeze Translate"), p=layout_top)
cmds.button(l="R", w=width, ann="Freeze Rotate",
c=sysCmd.rpartial(channelbox_command_freezeRotate, "", "", "Freeze Rotate"), p=layout_top)
cmds.button(l="S", w=width, ann="Freeze Scale",
c=sysCmd.rpartial(channelbox_command_freezeScale, "", "", "Freeze Scale"), p=layout_top)
cmds.button(l="A", w=width, ann="Freeze All",
c=sysCmd.rpartial(channelbox_command_freezeAll, "", "", "Freeze All"), p=layout_top)
layout_bot = cmds.rowLayout(nc=4, p=layout)
cmds.button(l="TS", w=width, ann="Freeze Translate / Scale",
c=sysCmd.rpartial(channelbox_command_freezeTranslateScale, "", "", "Freeze Translate / Scale"),
p=layout_bot)
cmds.button(l="TR", w=width, ann="Freeze Translate / Rotate",
c=sysCmd.rpartial(channelbox_command_freezeTranslateRotate, "", "", "Freeze Translate / Rotate"),
p=layout_bot)
cmds.button(l="RS", w=width, ann="Freeze Rotate / Scale",
c=sysCmd.rpartial(channelbox_command_freezeRotateScale, "", "", "Freeze Rotate / Scale"),
p=layout_bot)
cmds.button(l="JO", w=width, ann="Freeze Joint Orient",
c=sysCmd.rpartial(channelbox_command_freezeJointOrient, "", "", "Freeze Joint Orient"),
p=layout_bot)
cmds.window(frz_window, e=1, wh=(1, 1), rtf=1)
cmds.showWindow(frz_window)
示例9: populate_render_layer_layout
def populate_render_layer_layout(self, attr):
if self.render_layer_layout is not None:
node = attr.split('.')[0]
# delete old ui
children = cmds.columnLayout(self.render_layer_layout, q=True, childArray=True)
if children is not None:
for name in children:
cmds.deleteUI(name)
for i in range(50):
i += 1
layer_name = 'render_layer_{0}_name'.format(i)
if cmds.attributeQuery(layer_name, exists=True, node=node):
cmds.setParent(self.render_layer_layout)
current_render_layer_layout = cmds.rowLayout(nc=5)
for n, width in enumerate(self.render_layer_layout_widths):
cmds.rowLayout(current_render_layer_layout, e=True, cw=[n + 1, width])
cmds.textField(cc=partial(self.set_render_layer_name, node, i), text=cmds.getAttr('{0}.render_layer_{1}_name'.format(node, i)))
entity_type_menu = cmds.optionMenu(cc=partial(self.set_render_layer_type, node, i))
for entity_type in ms_commands.RENDER_LAYER_ENTITY_TYPES:
cmds.menuItem(label=entity_type)
cmds.optionMenu(entity_type_menu, e=True, v=cmds.getAttr('{0}.render_layer_{1}_type'.format(node, i)))
pattern_text_field = cmds.textField(cc=partial(self.set_render_layer_pattern, node, i), text=cmds.getAttr('{0}.render_layer_{1}_pattern'.format(node, i)))
cmds.textField(cc=partial(self.set_render_layer_order, node, i), text=cmds.getAttr('{0}.render_layer_{1}_order'.format(node, i)))
cmds.button(' - ', height=20, command=partial(self.remove_render_layer, node, i))
cmds.setParent(self.render_layer_layout)
current_render_layer_layout = cmds.rowLayout(nc=2)
cmds.button(' + ', command=partial(self.add_render_layer, node))
示例10: setUIObjectVisibility
def setUIObjectVisibility(item, visState):
"""
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DESCRIPTION:
Toggle for turning off and on the visibility of a menu section
ARGUMENTS:
stateToggle(string) - this should point to the variable holding a (bool) value
listOfItems(list) - list of menu item names to change
RETURNS:
locatorName(string)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"""
uiType = mc.objectTypeUI(item)
if uiType == 'staticText':
mc.text(item, edit = True, visible = visState)
elif uiType == 'separator':
mc.separator(item, edit = True, visible = visState)
elif uiType == 'rowLayout':
mc.rowLayout(item, edit = True, visible = visState)
elif uiType == 'rowColumnLayout':
mc.rowColumnLayout(item, edit = True, visible = visState)
elif uiType == 'columnLayout':
mc.columnLayout(item, edit = True, visible = visState)
elif uiType == 'formLayout':
mc.formLayout(item, edit = True, visible = visState)
#print ('%s%s%s%s%s%s%s' % ('"python(mc.',uiType,"('",item,"', edit = True, visible = ",visState,'))"'))
#mel.eval(('%s%s%s%s%s%s%s' % ('"python(mc.',uiType,"('",item,"', edit = True, visible = ",visState,'))"')))
#mc.separator(item, edit = True, visible = visState)
else:
warning('%s%s%s' %('No idea what ', item, ' is'))
示例11: postInstallDialog
def postInstallDialog():
'''
Displays a dialog window to confirm the installation for MRT.
'''
dialogWin = cmds.window(title='MRT Start Up', resizeToFitChildren=True,
maximizeButton=False, minimizeButton=False, sizeable=False)
mainCol = cmds.columnLayout(width=500, rowSpacing=15)
cmds.separator(style='none')
cmds.text(label='Modular rigging tools has been installed.', align='center', width=400)
cmds.text(label='Please restart maya.', font='boldLabelFont', align='center', width=400)
cmds.rowLayout(numberOfColumns=2, columnWidth=[(1, 150), (2, 100)])
cmds.separator(style='none')
cmds.button(label='OK', command=('import maya.cmds; maya.cmds.deleteUI(\"'+dialogWin+'\")'), width=100, align='center')
cmds.setParent(mainCol)
cmds.separator(style='none')
cmds.showWindow(dialogWin)
try: cmds.windowPref(dialogWin, remove=True)
except: pass
示例12: UI
def UI():
mc.frameLayout('Furioso',w=ui.rowWidth,cll=1,bgc=[.2,.2,.2],fn='smallBoldLabelFont',bs='in',l='Furioso')
mc.columnLayout('furiosoObjectConform',cal='center',w=ui.rowWidth-10)
mc.rowColumnLayout(numberOfColumns=8)
mc.iconTextButton(w=ui.iconSize,h=ui.iconSize,ann="Create 10x10 Tile",l= "Tile" ,i= "polyPlane.png",c=partial(delay,'mel.eval','("polyPlane -w 10 -h 10 -sx 10 -sy 10 -ax 0 1 0 -cuv 2 -ch 1")'))
mc.iconTextButton(w=ui.iconSize,h=ui.iconSize,ann="Create 1x1 Tile",l= "Tile" ,i= "plane.png",c=partial(delay,'mel.eval','("polyPlane -w 10 -h 10 -sx 1 -sy 1 -ax 0 1 0 -cuv 2 -ch 1;")'))
mc.iconTextButton(w=ui.iconSize,h=ui.iconSize,i= "cube.png",c=partial(delay,'mel.eval','("polyCube -w 10 -h 10 -d 10 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;")'))
mc.iconTextButton(w=ui.iconSize,h=ui.iconSize,i= "historyPulldownIcon.png",bgc=[.5,0,0],c=partial(delay,'mel.eval','("DeleteHistory")'))
mc.iconTextButton(w=ui.iconSize,h=ui.iconSize,i= "",en=0,c=partial(delay,'mel.eval','("polyPlane -w 10 -h 10 -sx 1 -sy 1 -ax 0 1 0 -cuv 2 -ch 1;")'))
mc.iconTextButton(w=ui.iconSize,h=ui.iconSize,ann="Set Camera to Meters",en=1,l= "Set Camera" ,i= "CameraAE.png",c=partial(delay,'mel.eval','("rcSetCameraClip .5 100000")'))
mc.iconTextButton(w=ui.iconSize,h=ui.iconSize,i= "polyQuad",c=partial(delay,'mel.eval','("TogglePolyCount")'))
mc.iconTextCheckBox(w=ui.iconSize,h=ui.iconSize,ann="Snap",l= "Tile" ,i= "snapGrid.png",onc=partial(delay,'rc.stepSnap','(5,1)'),ofc=partial(delay,'rc.stepSnap','(5,0)'),v=mc.manipMoveContext('Move',q=1,s=1))
mc.setParent('..')
mc.rowLayout(w=ui.rowWidth,numberOfColumns=3)
mc.button(w=ui.rowWidth/3,h=ui.btn_large,al='left',l=' + ',c=partial(delay,'btnPlus','(mc.ls(sl=1))')) #
mc.button(h=ui.btn_large,w=ui.rowWidth/3,al='center',l=' - ',c=partial(delay,'btnDel','("sel")'))
mc.button(h=ui.btn_large,w=ui.rowWidth/3,al='right',l='NUKE',c=partial(delay,'btnDel','("all")'))
mc.setParent('..')
mc.checkBox('Object',vis=0,l='Object',v=int(furiosoPrefs.get('Object')),cc=partial(delay,'furiosoPrefs.checkBox',"('Object')"))
mc.checkBox('Material',l='Material',vis=1,v=int(furiosoPrefs.get('Material')),cc=partial(delay,'furiosoPrefs.checkBox',"('Material')"))
mc.checkBox('Flag',l='Flag',vis=0,v=int(furiosoPrefs.get('Flag')),cc=partial(delay,'furiosoPrefs.checkBox',"('Flag')"))
mc.iconTextScrollList('FuriosoObjScroll',w=ui.rowWidth,h=500)
mc.setParent('furiosoObjectConform')
mc.setParent('..')
buildUILists()
示例13: __init__
def __init__(self):
### Initialize, definitions
if(mc.window("ms_orientJoint",exists=True)):
mc.deleteUI("ms_orientJoint",window=True)
mc.window("ms_orientJoint",title="Orient Joint v1.0",rtf=True)
mc.columnLayout()
mc.rowLayout(nc=2)
mc.text(" ")
mc.text("Orient joint A to joint B")
mc.setParent("..")
mc.separator(w=500)
self.aimAxisField = mc.radioButtonGrp(label="Aim Axis",labelArray3=['x','y','z'],nrb=3,sl = 1)
self.aimAxisPolField = mc.radioButtonGrp(label="Aim Axis Polarity",labelArray2=['+','-'],nrb=2,sl = 1)
self.upAxisField = mc.radioButtonGrp(label="Up Axis",labelArray3=['x','y','z'],nrb=3,sl = 2)
self.upPolarityField = mc.radioButtonGrp(label="Up Axis Polarity",labelArray2=['+','-'],nrb=2,sl=1)
mc.separator(w=500)
mc.rowLayout(nc=3)
mc.text(" ")
mc.button(label="-=Orient=-",c=self.orient)
mc.button(label="-=None Orient=-",c=self.noneOrient)
mc.setParent("..")
mc.showWindow("ms_orientJoint")
示例14: SundayGeometryCacheImportUI
def SundayGeometryCacheImportUI():
global sundayGeometryCacheImportUI
print 'SundayGeometryCacheImport'
exportDir = cmds.workspace(q = True, rootDirectory = True) + 'data'
cacheDir = os.listdir(exportDir)
SundayMayaGuiPath = mel.eval('getenv SundayGui;')
try:
if cmds.window(sundayGeometryCacheImportUI, exists = True):
cmds.deleteUI(sundayGeometryCacheImportUI)
sundayGeometryCacheImportUI = cmds.loadUI(uiFile = SundayMayaGuiPath + 'SundayGeometryCacheImport.ui')
except:
sundayGeometryCacheImportUI = cmds.loadUI(uiFile = SundayMayaGuiPath + 'SundayGeometryCacheImport.ui')
cmds.text('SundayGeometryCachePath', edit = True, label = exportDir)
cmds.setParent(sundayGeometryCacheImportUI)
cmds.setParent(cmds.button('SundayGeometryImportDummyButtonToGrabParent', query = True, fullPathName = True, parent = True))
scrollLayout = cmds.scrollLayout(childResizable = True)
for curCacheDir in cacheDir:
if curCacheDir.split('.')[0] != '':
cmds.rowLayout(numberOfColumns = 2, adjustableColumn = 1)
cmds.button(height = 26, label = curCacheDir, command = 'import SundayGeometryCachePy\nreload(SundayGeometryCachePy)\nSundayGeometryCachePy.SundayGeometryCacheImportFile("' + exportDir + os.sep + curCacheDir + '")')
cmds.button(height = 26, label = 'Delete', command = 'import SundayGeometryCachePy\nreload(SundayGeometryCachePy)\nSundayGeometryCachePy.SundayGeometryCacheDelete("' + exportDir + os.sep + curCacheDir + '")')
cmds.setParent('..')
continue
cmds.setParent(sundayGeometryCacheImportUI)
cmds.setParent(cmds.button('SundayGeometryImportDummyButtonToGrabParent', query = True, fullPathName = True, parent = True))
cmds.text('sundayGeoCacheNodeLabel', edit = True, label = len(cmds.ls(type = 'cacheFile', long = True)))
cmds.showWindow(sundayGeometryCacheImportUI)
if platform.system() == 'Windows':
cmds.window(sundayGeometryCacheImportUI, edit = True, topLeftCorner = [
100,
100])
示例15: displayUI
def displayUI(self):
windowName = 'LCMTUIWindow'
if cmds.window(windowName, exists=True):
cmds.deleteUI(windowName)
window = cmds.window(windowName, menuBar = True,t="LCMT v3.1.1")
fileMenu = cmds.menu( label='Manage Light Types')
cmds.menuItem( label='Add More Light Types',command=lambda *args:self.addLightTypes())
cmds.menuItem( label='See Current Light Types', command=lambda *args:self.displayLightTypes())
cmds.menuItem( label='Reset Light Types to Default Values', command=lambda *args:self.resetLightTypesToDefault())
cmds.paneLayout( configuration='vertical2' )
lightStageColumn = cmds.columnLayout(adjustableColumn=True)
cmds.text('Lights in the SCENE')
lights = cmds.ls(dag =True,visible=True,lights=True, type='mentalrayIblShape')
lightList = cmds.iconTextScrollList(allowMultiSelection=True, append=lights)
cmds.rowLayout(numberOfColumns = 2)
useGroupLights = cmds.checkBox( label='Group Lights', onCommand = lambda *args: self.updateScollList(True, lightList), offCommand = lambda *args: self.updateScollList(False, lightList))
cmds.checkBox( label='Save Images?', cc = lambda *args: self.toggleSaveImages())
cmds.setParent('..')
cmds.iconTextScrollList(lightList,edit=True,selectCommand=lambda *args: cmds.select(self.getElementsFromLightScrollList(lightList,useGroupLights),vis=True))
cmds.button(label='Render Lights!', command = lambda *args: self.renderAllLights(self.getElementsFromLightScrollList(lightList,useGroupLights),cmds.checkBox(useGroupLights, query=True, value=True)))
cmds.setParent('..')
renderLayersColumn = cmds.columnLayout(adjustableColumn=True)
#new column
cmds.text('Geometry in the SCENE')
geometry = cmds.ls(geometry=True)
#take out the ibl shapes from the geo selection
geometry = list(set(geometry) - set(lights))
geoList = cmds.iconTextScrollList(allowMultiSelection=True, append=geometry,selectCommand=lambda *args: cmds.select(cmds.iconTextScrollList(geoList, query=True, si=True )) )
cmds.text('Create Render Layers from selected geometry and lights')
cmds.button(label='Create Render Layers!', command = lambda *args: self.createLayersFromLights(cmds.iconTextScrollList(geoList, query=True, si=True ),self.getElementsFromLightScrollList(lightList,useGroupLights)))
cmds.setParent('..')
cmds.showWindow()