本文整理汇总了Python中maya.cmds.rowColumnLayout函数的典型用法代码示例。如果您正苦于以下问题:Python rowColumnLayout函数的具体用法?Python rowColumnLayout怎么用?Python rowColumnLayout使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rowColumnLayout函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: UI
def UI():
if cmds.window('FBXExport',ex=True):
cmds.deleteUI('FBXExport',wnd=True)
window = cmds.window('FBXExport',t='FBX Export Version 1.0.0',wh=(450,300),sizeable=False)
mainLayout = cmds.columnLayout(w=450, h=300)
cmds.menuBarLayout()
# cmds.menu(label ='About Me',helpMenu=True)
cmds.menu(label='File')
cmds.menuItem(label='About Me',c=AboutMe)
cmds.menuItem(label='Help',c=Help)
cmds.separator(st='in')
cmds.columnLayout(columnAlign='left', columnAttach=('both', 50), rowSpacing=30, columnWidth=420)
cmds.text(l='')
cmds.optionMenu(label ='ExportType:',changeCommand=printNewMenuItem)
cmds.menuItem( label='Export Selection' )
cmds.menuItem( label='Export All' )
cmds.rowColumnLayout(numberOfColumns=2)
cmds.textField("filepath",w=270,pht=configpath, bgc=(0.2,0.2,0.2))
cmds.button(l='path',w =50,h=20,c=browseFilePath)
cmds.setParent( '..' )
cmds.rowColumnLayout(numberOfColumns=2)
cmds.button(l='Name:',w =50,h=20,en=False)
cmds.textField('FileName',pht='Enter a filename',ed =True,w=270,bgc=(0.2,0.2,0.2))
cmds.setParent( '..' )
cmds.button(l='Export',bgc=(0.3,0.7,0.7),c=ExportFBX)
cmds.showWindow(window)
开发者ID:Jamesgary2015,项目名称:FBXExport,代码行数:30,代码来源:FBXExport.py
示例2: add
def add(self, driverName, angleValues=[] ):
if not angleValues:
angleValues = [0,0,0]
defaultBgc = [ .1, .1, .1 ]
onBgc = [ .9, .9, .2 ]
enList = [0,0,0]
bgcList = [None,None,None]
for i in range( 3 ):
if math.fabs( angleValues[i] ) >= self._minValue:
bgcList[i] = onBgc
enList[i] = 1
else:
bgcList[i] = defaultBgc
enList[i] = 0
widthList = uifnc.setWidthByPerList( [70,15,15,15] , self._width )
cmds.rowColumnLayout( nc=4, cw=[(1,widthList[0]),(2,widthList[1]),(3,widthList[2]),(4,widthList[3])] )
cmds.text( l= driverName+' : ', al='right' )
cmds.floatField( precision=2, v=angleValues[0], bgc= bgcList[0] )
cmds.popupMenu(); cmds.menuItem( l='Add Driver', c= partial( self.addConnectDriver, driverName+' | angle0 : %3.2f' %angleValues[0] ) )
cmds.floatField( precision=2, v=angleValues[1], bgc= bgcList[1] )
cmds.popupMenu(); cmds.menuItem( l='Add Driver', c= partial( self.addConnectDriver, driverName+' | angle1 : %3.2f' %angleValues[1] ) )
cmds.floatField( precision=2, v=angleValues[2], bgc= bgcList[2] )
cmds.popupMenu(); cmds.menuItem( l='Add Driver', c= partial( self.addConnectDriver, driverName+' | angle2 : %3.2f' %angleValues[2] ) )
self.driverScrollAddPopupCmd()
cmds.setParent( '..' )
开发者ID:jonntd,项目名称:mayadev-1,代码行数:35,代码来源:part1_driverInfo.py
示例3: separator
def separator( w=300, h=5 ):
cmds.rowColumnLayout( nc=1, cw=( 1,w ) )
setSpace( h )
cmds.separator()
setSpace( h )
cmds.setParent( '..' )
开发者ID:jonntd,项目名称:mayadev-1,代码行数:7,代码来源:uiInfo.py
示例4: installCopyRightInfo
def installCopyRightInfo(self):
""""""
cmds.frameLayout(lv=False, bs='etchedIn', mh=6, mw=6, w=1)
cmds.text(l="Soft Cluster EX", fn='boldLabelFont', align='center')
cmds.rowColumnLayout( numberOfColumns=2,
rowSpacing=[1, 8],
columnAttach=[1, "right", 5],
columnAlign=[1, "right"])
cmds.text(l="Version: ", fn='boldLabelFont')
cmds.text(l=setup.getVersion(), align='left')
cmds.text(l="Author: ", fn='boldLabelFont')
cmds.text(l="Webber Huang", align='left')
cmds.text(l="Contact: ", fn='boldLabelFont')
cmds.text(l="[email protected]", align='left')
cmds.text(l="Project Site: ", fn='boldLabelFont')
cmds.iconTextButton( style='textOnly',
l='http://riggingtd.com/downloads/soft-cluster-ex',
ann="Click to open in brower.",
c = lambda *args: setup.openBlog() )
cmds.setParent( ".." )
cmds.setParent( ".." )
开发者ID:griffinanimator,项目名称:ThirdParty,代码行数:26,代码来源:tabAbout.py
示例5: renameGui
def renameGui(parent):
renCol = cmds.columnLayout()
colWidth = winWidth/4
cmds.rowColumnLayout(nc=4, cw=[[1,colWidth],[2,colWidth+40],[3,colWidth-40],[4,colWidth]],
co=[[1,"both",3],[2,"both",3],[3,"both", 3],[4,"both",3]])
cmds.text( label="Prefix", al="center" )
cmds.text( label="Name", al="center" )
cmds.text( label="###", al="center" )
cmds.text( label="Suffix", al="center" )
cmds.textField( "mecRenPre" )
cmds.textField( "mecRenName" )
cmds.intField( "mecRenCount" )
cmds.textField( "mecRenSuf" )
cmds.setParent(renCol)
cmds.rowColumnLayout( nc=3, cw=[[1,winWidth/3-20],[2,winWidth/3+40],[3,winWidth/3-20]],
co=[[1,"both",3],[3,"both",3]])
cmds.button(label="Prefix",
c=Callback(prefix))
cmds.button(label="Full Rename",
c=Callback(fullRename))
cmds.button(label="Suffix",
c=Callback(suffix))
cmds.setParent( parent )
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:25,代码来源:mecRenameTools.py
示例6: core
def core(self):
if cmds.window( self._winName, ex=1 ):
cmds.deleteUI( self._winName )
cmds.window( self._winName, title= self._title )
cmds.columnLayout()
uifnc.setSpace( 10 )
widthList = uifnc.setWidthByPerList( [3,60,30,3], self._width )
cmds.rowColumnLayout( nc=4, cw=[ (1,widthList[0]), (2,widthList[1]),(3,widthList[2]), (4,widthList[3]) ] )
uifnc.setSpace()
self.driverRootPart( widthList[1] )
self.editMeshPart( widthList[1] )
uifnc.setSpace()
self.setSpace( 4, 15 )
uifnc.setSpace()
self.driverListPart( widthList[1], 150 )
self.meshListPart( widthList[2], 150 )
uifnc.setSpace()
cmds.setParent( '..' )
cmds.window( self._winName, e=1, wh=[ self._width, self._height ] )
cmds.showWindow( self._winName )
self.scriptJob()
开发者ID:jonntd,项目名称:mayadev-1,代码行数:32,代码来源:mainUi.py
示例7: displayInstructions
def displayInstructions(*pArgs):
"""Shows in an independent window a list of instructions for the user to set things up quickly"""
if cmds.window( "instructions_window", exists=True ):
cmds.deleteUI( "instructions_window" )
instructions_window = cmds.window( "instructions_window", title="Instructions", s=False, mnb=False, mxb=False )
instructionsLayout = cmds.frameLayout( l="Instructions", collapsable=False, cl=False, mw = 10, mh=10 )
cmds.rowColumnLayout( nc=3, cw=[(1,20),(2,480),(3,20)], cal=[(2,"left")], parent=instructionsLayout )
cmds.separator( st="none" )
cmds.text( l="1. Write an axiom (or initial word), depth and rules. If you don't know what it is put the mouse over the parameter and read the help line.\n2. Click Generate String. Then you will see the result in the text field below, this is just mere text. Now the string needs to be interpreted.\n3. Set all the 'Geometric Interpretation' attributes (Angle, Segment Length...). Remember to put the mouse over it if your are confused.\n4. Click Create Geometry. You will see the result in your scene. If you want to clean the last plant\n\tclick Clean Plant. If you click Create Geometry again you will get another plant.\n6. Always remember to pay attention to the help line and warnings field." )
cmds.separator( st="none" )
cmds.separator( st="none" )
cmds.text( l="\nThis is the meaning for each character you enter in the rules section:" )
cmds.separator( st="none" )
cmds.separator( st="none" )
cmds.text( l="""
F Move forward
f Move forward
L Leaf
B Blossom
+ Rotate +X (yaw right)
- Rotate -X (yaw left)
^ Rotate +Y (roll right)
& Rotate -Y (roll left)
< Rotate +Z (pitch down)
> Rotate -Z (pitch up)
* Turtle rotates 180 (as it was facing backwards)
[ Push current turtle state on the stack
] Pop the current turtle state from the stack""" )
cmds.showWindow( instructions_window )
开发者ID:docwhite,项目名称:LSystemsMaya,代码行数:29,代码来源:gui.py
示例8: create
def create(self, *args ):
top, left = cmds.window( WindowInfo._window, q=1, topLeftCorner=1 )
top += 70
left +=19
itemIndex = cmds.textScrollList( FolderUIInfo._scrollListUI, q=1, sii=1 )
if not itemIndex: return None
selItem = cmds.textScrollList( FolderUIInfo._scrollListUI, q=1, si=1 )[0].split('.')[0]
top += itemIndex[0]*13
if cmds.window( FolderSubRenameUiInfo._winName, ex=1 ):
cmds.deleteUI( FolderSubRenameUiInfo._winName )
cmds.window( FolderSubRenameUiInfo._winName, titleBar=0 )
cmds.columnLayout()
cmds.rowColumnLayout( nc=3, cw=[(1,120),(2,52),(3,25)] )
textField = cmds.textField( tx=selItem )
cmds.button( l='Rename', c=FolderSubRenameUiInfo.cmdRename )
cmds.button( l='X' , c=self.cmdDeleteWindow, bgc=[0.9,0.35,0.35] )
cmds.windowPref( FolderSubRenameUiInfo._winName, e=1,
widthHeight = [ FolderSubRenameUiInfo._width, FolderSubRenameUiInfo._height ],
topLeftCorner = [ top, left ] )
cmds.showWindow( FolderSubRenameUiInfo._winName )
FolderSubRenameUiInfo._renameTextField = textField
开发者ID:jonntd,项目名称:mayadev-1,代码行数:29,代码来源:view_sub.py
示例9: buildGUI
def buildGUI(self):
if cmds.window(self.name, q=True, exists=True):
cmds.deleteUI(self.name)
cmds.window(self.name, title=self.title, sizeable=False, mxb=False, mnb=False, toolbox=False, w=100, h=30)
cmds.columnLayout("mainLayout", adj=True, parent=self.name, co=("left", 5))
# Add onClose Event
cmds.scriptJob(uiDeleted=(self.name, self.onClose))
# Help Menu
cmds.menuBarLayout("menuBar")
cmds.menu(label="Show Help", helpMenu =True, pmc=self.showHelp)
# Import paths
cmds.textFieldButtonGrp("tfbDBPath", label="Links: ", bl="Set Link Path", cw=(1,50), parent="mainLayout", bc=self.setDBPath)
cmds.textFieldButtonGrp("tfbShaderPath", label="Shaders: ", bl="Set Shader Path", cw=(1,50), parent="mainLayout", bc=self.setShaderPath)
cmds.checkBox("cbSelection", label="Use Selection", parent="mainLayout")
cmds.checkBox("cbSubstring", label="Substring prefix", parent="mainLayout", value=True)
cmds.textField("tfSubstring", parent="mainLayout", text="s100_char")
cmds.separator(h=10, style="none", parent="mainLayout")
# Buttons
cmds.rowColumnLayout("buttonsLayout", numberOfColumns=2, parent="mainLayout")
cmds.button("bExportLinks", label = "Export Links", w=200, h=30, parent="buttonsLayout", c=self.exportLinks)
cmds.button("bImportShader", label="Link Shaders", w=200, h=30, parent="buttonsLayout", c=self.linkShaders)
cmds.showWindow(self.name)
开发者ID:Quazo,项目名称:breakingpoint,代码行数:30,代码来源:jf_shaderLinker.py
示例10: assignCustomMateColorUI
def assignCustomMateColorUI( self, colorMat = 'RL_SOMECOLOR', col = (1,1,1)):
mc.columnLayout()
mc.colorSliderGrp( 'customColorColorSlider', rgb = col )
mc.checkBox( 'customAlpha_chb', l = 'With Alpha', v = True )
mc.rowColumnLayout( nc = 2 )
mc.button( l = 'Create', w = 120, c = self.assignNewMateColorUi )
mc.button( l = 'Cancel', w = 120, c = self.dismissCustomColorUI )
开发者ID:skarone,项目名称:PipeL,代码行数:7,代码来源:lighterHelperUI.py
示例11: rgb_base_gui
def rgb_base_gui(*args):
if cmds.window('rgb_gui', q=1, ex=1):
cmds.deleteUI('rgb_gui')
cmds.window('rgb_gui', t="Object to Render layer")
cmds.columnLayout(adjustableColumn = True)
cmds.rowColumnLayout(numberOfColumns=3)
cmds.text("Render Layer", h= 20, bgc= (0.3,0.6,0.8))
cmds.text("Added Object", h= 20, bgc= (0.7,0.6,0.6))
cmds.button("Selected Object", h = 20, bgc =(0.7,0.3,0.3),c = sel_objs)
sels = cmds.ls(sl=1)
rls = cmds.ls(typ="renderLayer")
rl = filter(lambda x:x !="defaultRenderLayer", rls)
rls = cmds.textScrollList('rls', append=rl,ams=True, sc = rl_obj_list)
objs = cmds.textScrollList('objs', append=sels,ams=True,height = 450,bgc = (0.3,0.3,0.5))
sels = cmds.textScrollList('sels', append=sels,ams=True,height = 450)
cmds.button("REFRESH", c= rgb_base_gui)
cmds.button("REMOVE", c=remove_objs,bgc = (0.7,0.6,0.6))
cmds.button("ASSIGN", c= put_obj, bgc = (0.7,0.3,0.3))
cmds.rowColumnLayout(numberOfRows=2)
cmds.window('rgb_gui', e=1, width=450, height = 250)
cmds.showWindow('rgb_gui')
开发者ID:muskccat,项目名称:RenderLayerUtils,代码行数:30,代码来源:object_to_render_layer.py
示例12: gui
def gui():
if (cmds.window(win, q=True, ex=True)):
cmds.deleteUI(win)
global prefix, name, inc, suffix
cmds.window(win, t='Rename Tool', w=width, h=300)
main_layout = cmds.columnLayout(nch=2)
cmds.rowColumnLayout(w=width, nc=4)
cmds.text(w=(width/4), l='Prefix')
cmds.text(w=(width/4), l='Name')
cmds.text(w=(width/4), l='Instance')
cmds.text(w=(width/4), l='Suffix')
prefix = cmds.textField(w=(width/4), tx='')
name = cmds.textField(w=(width/4), tx='')
inc = cmds.intField(w=(width/4), v=0)
suffix = cmds.textField(w=(width/4), tx='')
cmds.setParent(main_layout)
cmds.columnLayout(w=width, adj=True)
cmds.button(l='Run Rename', c=scriptname + '.rn()')
cmds.showWindow()
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:26,代码来源:rename_tool_v3.py
示例13: createLayout
def createLayout(self):
tweenMachine = TweenMachine()
cmds.rowColumnLayout(numberOfColumns=100, parent=self.parentLayout)
#linear
cmds.text( label=' ', h=1 )
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_left"), highlightImage= uiMod.getImagePath("tweenMachine_left copy"), command=lambda *args: tweenMachine.setTween("linear_prev"), annotation="Overshoot linear tween")
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hb, image= uiMod.getImagePath("tweenMachine_L"), highlightImage= uiMod.getImagePath("tweenMachine_L copy"), command=lambda *args: tweenMachine.setTween("linear"), annotation="Linear tween")
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_right"), highlightImage= uiMod.getImagePath("tweenMachine_right copy"), command=lambda *args: tweenMachine.setTween("linear_next"), annotation="Overshoot linear tween")
#tween
cmds.text( label=' ', h=1 )
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_left"), highlightImage= uiMod.getImagePath("tweenMachine_left copy"), command=lambda *args: tweenMachine.setTween(-50), annotation="Overshoot 50% with previous key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(-30), annotation="Overshoot 30% with previous key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(-10), annotation="Overshoot 10% with previous key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hb, image= uiMod.getImagePath("tweenMachine_key"), highlightImage= uiMod.getImagePath("tweenMachine_key copy"), command=lambda *args: tweenMachine.setTween(0), annotation="Copy previous key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(10), annotation="Tween 90% with previous key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(20), annotation="Tween 80% with previous key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(33), annotation="Tween 66% with previous key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hb, image= uiMod.getImagePath("tweenMachine_T"), highlightImage= uiMod.getImagePath("tweenMachine_T copy"), command=lambda *args: tweenMachine.setTween(50), annotation="Tween 50%"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(66), annotation="Tween 66% with next key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(80), annotation="Tween 80% with next key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(90), annotation="Tween 90% with next key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hb, image= uiMod.getImagePath("tweenMachine_key"), highlightImage= uiMod.getImagePath("tweenMachine_key copy"), command=lambda *args: tweenMachine.setTween(100), annotation="Copy next key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(110), annotation="Overshoot 10% with next key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_mid"), highlightImage= uiMod.getImagePath("tweenMachine_mid copy"), command=lambda *args: tweenMachine.setTween(130), annotation="Overshoot 30% with next key"); tweenMachine.popUpColor()
cmds.iconTextButton(style='iconOnly', marginWidth=0, w=self.ws, h=self.hs, image= uiMod.getImagePath("tweenMachine_right"),highlightImage= uiMod.getImagePath("tweenMachine_right copy"), command=lambda *args: tweenMachine.setTween(150), annotation="Overshoot 50% with next key"); tweenMachine.popUpColor()
开发者ID:Italic-,项目名称:maya-prefs,代码行数:28,代码来源:tweenMachine.py
示例14: driverRootPart
def driverRootPart( self, width ):
widthList = uifnc.setWidthByPerList( [60,40], width )
cmds.rowColumnLayout( nc=2, cw=[(1,widthList[0]),(2,widthList[1])] )
self._driverRootField = cmds.textField()
self._driverRootButton = cmds.button( l='Load', c = partial( self.loadCmd, self._driverRootField ), h=25 )
cmds.setParent( '..' )
开发者ID:jonntd,项目名称:mayadev-1,代码行数:7,代码来源:mainUi.py
示例15: audioUI
def audioUI():
"""UI for the whole thing"""
if (cmds.window("audioWin", exists=True)):
cmds.deleteUI("audioWin")
widgets["win"] = cmds.window("audioWin", t="zbw_audioManager", w=300, h=260)
widgets["mainCLO"] = cmds.columnLayout()
widgets["getAudioBut"] = cmds.button(l="Get All Audio In Scene", w=300, h=30, bgc=(.6, .6, .8), c=getAudio)
cmds.text("Double-click item in list to enable sound and select it", al="left")
widgets["audioTSL"] = cmds.textScrollList(h=100, w=300, dcc=selectAudio)
widgets["buttonRCLO"] = cmds.rowColumnLayout(nc=2)
widgets["deleteSelBut"] = cmds.button(l="Delete Selected", w=150, h=20, bgc=(.8,.6,.6), c=deleteSelected)
widgets["deleteAllBut"] = cmds.button(l="Delete All Audio", w=150, h=20, bgc=(.8,.4,.4), c=deleteAll)
cmds.setParent(widgets["mainCLO"])
cmds.separator(h=20)
widgets["newAudioBut"] = cmds.button(l="Import New Audio File!", w=300, h=30, bgc=(.6,.8,.6), c=importAudio)
cmds.separator(h=20)
widgets["offsetRCLO"] = cmds.rowColumnLayout(nc=2, cw=([1,175], [2, 125]), cal=([1,"left"], [2,"left"]))
widgets["offsetIFG"] = cmds.intFieldGrp(l="Offset Selected By ", v1=1, cal=([1,"left"], [2,"left"]), cw=([1,100],[2,50]))
widgets["offsetBut"] = cmds.button(l="Offset!", w=100, h=30, bgc=(.6,.8,.8), c=offsetAudio)
cmds.showWindow(widgets["win"])
cmds.window(widgets["win"], e=True, w=300, h=260)
开发者ID:zethwillie,项目名称:zbw_python_tools,代码行数:30,代码来源:zbw_audioManager.py
示例16: meshListPart
def meshListPart(self, width, height ):
cmds.rowColumnLayout( nc=1, cw=[(1, width)] )
cmds.text( l='Mesh List', al='center' )
uifnc.setSpace( 10 )
self._meshList = cmds.textScrollList( height = height, ams=1, sc= self.meshListSelectCmd )
cmds.setParent( '..' )
开发者ID:jonntd,项目名称:mayadev-1,代码行数:7,代码来源:mainUi.py
示例17: createUI
def createUI (pWindowTitle, pApplyCallback):
windowID = 'MyWindowID'
if cmds.window(windowID, exists=True):
cmds.deleteUI(windowID)
cmds.window(windowID, title=pWindowTitle, sizeable=False, resizeToFitChildren=True)
cmds.rowColumnLayout(numberOfColumns=3, columnWidth=[(1,75),(2,60),(3,60)], columnOffset=[(1,'right',3)])
cmds.text(label='Time Range:')
startTimeField = cmds.intField()
endTimeField = cmds.intField()
cmds.text(label='Attribute:')
targetAttributeField = cmds.textField()
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.button(label='Apply', command=pApplyCallback)
def cancelCallback(*pArgs):
if cmds.window(windowID, exists=True):
cmds.deleteUI(windowID)
cmds.button(label='Cancel', command=cancelCallback)
cmds.showWindow()
开发者ID:Kif11,项目名称:maya_tools,代码行数:34,代码来源:simple_ui.py
示例18: create
def create(self):
self.fields = []
if cmds.window( self.uiname, ex=1 ):
cmds.deleteUI( self.uiname, wnd=1 )
cmds.window( self.uiname, title= self.title )
columnLayout = cmds.columnLayout()
columnWidth = self.width - 2
self.rowColumnField = cmds.rowColumnLayout( nc=1, cw=[( 1, self.width ) ] )
cmds.button( l='Append', c= self.cmdAppend )
field = AttrAndValueField( columnLayout, columnWidth )
self.fields.append( field )
cmds.setParent( '..' )
firstWidth = (columnWidth-2) / 2
secondWidth = columnWidth - 2 - firstWidth
cmds.rowColumnLayout( nc=2, cw=[(1, firstWidth),(2, secondWidth) ] )
cmds.button( l='Set', c= self.cmdSet )
cmds.button( l='Cancel', c= self.cmdCancel )
cmds.setParent( '..' )
cmds.window( self.uiname, e=1, width= self.width, height = self.height )
cmds.showWindow( self.uiname )
self.columnWidth = self.width -2
开发者ID:jonntd,项目名称:mayadev-1,代码行数:30,代码来源:sgSetAttrUI.py
示例19: gui
def gui():
'''
GUI for Image convert script.
'''
win = "mecCVTWin"
winWidth = 200
winHeight = 369
if( cmds.window(win, q=True, ex=True) ):
cmds.deleteUI(win)
cmds.window(win, title="Image Converter", w=winWidth, h=winHeight)
cmds.columnLayout("mecCVTMC")
cmds.button(label="Get Directory", w=200,
c="mecConvert.pickFolder()")
cmds.scrollField( "mecCVTDir", w=winWidth,
editable=False, wordWrap=True, text='Choose Directory' )
# cmds.text("mecCVTDir", label="")
cmds.textScrollList("mecCVTTSL", w=winWidth, h=200,
allowMultiSelection=True)
cmds.rowColumnLayout(nc=2, cw=[[1,100],[2,100]])
cmds.button(label="Remove ALL",
c="mecConvert.cmds.textScrollList('mecCVTTSL', e=True, ra=True)")
cmds.button(label="Remove Selected",
c="mecConvert.tslRemSel()")
cmds.setParent("..")
cmds.button(label="Convert", w=200,
c="mecConvert.convert()")
cmds.picture(image="sbaLogo.xpm", w=210, h=20)
cmds.showWindow(win)
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:34,代码来源:mecConvert.py
示例20: _showUI
def _showUI(self):
if cmds.window(self.win, exists=True):
cmds.deleteUI(self.win, window=True)
cmds.window(self.win, title=self.win, widthHeight=(400, 220))
cmds.columnLayout('uicl_audioMain',adjustableColumn=True)
cmds.separator(h=15, style='none')
cmds.text(l='Select Audio to Offset')
cmds.separator(h=15, style='in')
cmds.rowColumnLayout(numberOfColumns=3, columnWidth=[(1, 100), (2, 90), (3, 100)])
cmds.button(label='<< Offset',
ann='Nudge selected Audio Backwards',
command=partial(self.offsetSelectedBy,'negative'))
cmds.floatField('AudioOffsetBy', value=10)
cmds.button(label='Offset >>',
ann='Nudge selected Audio Forwards',
command=partial(self.offsetSelectedBy,'positive'))
cmds.setParent('..')
cmds.separator(h=15, style='in')
cmds.rowColumnLayout(numberOfColumns=2, columnWidth=[(1, 200), (2, 90)])
cmds.button(label='Offset Range to Start at:',
ann='offset the selected range of audionodes such that they start at the given frame',
command=self.offsetSelectedTo)
cmds.floatField('AudioOffsetToo', value=10)
cmds.setParent('..')
cmds.separator(h=15, style='in')
cmds.button(label='Ripple selected',
ann="Ripple offset the selected audio nodes so they're timed one after another",
command=self.offsetRipple)
cmds.separator(h=15, style='none')
cmds.iconTextButton(style='iconOnly', bgc=(0.7, 0, 0), image1='Rocket9_buttonStrap2.bmp',
c=lambda *args: (r9Setup.red9ContactInfo()), h=22, w=200)
cmds.showWindow(self.win)
cmds.window(self.win, e=True, widthHeight=(290, 190))
开发者ID:hoorayfor3d,项目名称:Red9_StudioPack,代码行数:33,代码来源:Red9_Audio.py
注:本文中的maya.cmds.rowColumnLayout函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论