本文整理汇总了Python中pymel.core.separator函数的典型用法代码示例。如果您正苦于以下问题:Python separator函数的具体用法?Python separator怎么用?Python separator使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了separator函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: create
def create(self):
# destroy the window if it already exists
try:
pm.deleteUI(self.WINDOW_NAME, window=True)
except: pass
# draw the window
with pm.window(self.WINDOW_NAME) as res_window:
with pm.columnLayout(adjustableColumn=True):
with pm.horizontalLayout():
pm.text(label='Resolution')
with pm.optionMenu() as self.res_menu:
pm.menuItem(l='Low')
pm.menuItem(l='Med')
pm.menuItem(l='Hi')
set_res_btn = pm.button(label='Set LOD', command=pm.Callback(self.on_set_res_btn))
pm.separator(style='in', height=4)
with pm.horizontalLayout() as h1:
pm.text(label='Low')
select_low_btn = pm.button(label='Select All', command=pm.Callback(self.on_select_btn,'Low'))
toggle_low_btn = pm.button(label='Toggle Visibility', command=pm.Callback(self.on_vis_btn, 'Low'))
with pm.horizontalLayout() as h1:
pm.text(label='Medium')
select_med_btn = pm.button(label='Select All', command=pm.Callback(self.on_select_btn, 'Med'))
toggle_med_btn = pm.button(label='Toggle Visibility', command=pm.Callback(self.on_vis_btn, 'Med'))
with pm.horizontalLayout() as h1:
pm.text(label='High')
select_hi_btn = pm.button(label='Select All', command=pm.Callback(self.on_select_btn, 'Hi'))
toggle_hi_btn = pm.button(label='Toggle Visibility', command=pm.Callback(self.on_vis_btn, 'Hi'))
self.status_line = pm.textField(editable=False)
res_window.setWidthHeight((350,140))
开发者ID:animformed,项目名称:maya-py-book-exercises,代码行数:30,代码来源:P_maya_c5_LODwindow.py
示例2: 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)
开发者ID:Shadowtags,项目名称:ModularRiggingTool,代码行数:33,代码来源:spline.py
示例3: show
def show(self):
self.window = pm.window(self.name, wh=(self.w, self.h), title=self.name)
self.fl = pm.formLayout(nd=100)
#create the main form layout of the window
self.frame_layout = pm.frameLayout(bgc=(.3,.1,.25), li=self.w/4, la='center', fn='boldLabelFont',
label='AW Binary Proxy Tools', borderStyle='in', mh=self.h/12,h=self.h-40)
self.cl = pm.columnLayout(adj=True, cal='left', cat=['both',0], rs=5)
pm.text(label='mip_renderProxy Creation', al='center')
pm.button (label='Create Render Proxies', bgc=(.4,.5,.2),
command= lambda *args: self._createRenderProxy( pm.ls(sl=True) ))
pm.separator(st='doubleDash', h=25)
pm.text(label='mip_renderProxy Assignment', al='center')
self.fileInput = TextFieldBrowserInput( width=300, name='Proxy Input', option_name='Proxy Browse Type', options=['from file', 'from folder'], button_name='Browse', parent=self.cl )
pm.button (label='Assign Render Proxies', bgc=(.4,.5,.2),
command= lambda *args: self._attachRenderProxy( pm.ls(sl=True) ))
pm.button (label='DELETE ALL BINARY PROXIES', bgc=(.4, .2, .2), command=self._removeAllBipx)
pm.setParent('..')
pm.setParent('..')
#add the close window button
self.close_btn = pm.button (w=self.bw, label='Close', bgc = (.4, .2, .2), command=self.close_UI)
#finalize form layout
pm.formLayout(self.fl, edit=True,
attachForm = [(self.frame_layout, 'top', 0),
(self.frame_layout, 'left', 0),
(self.frame_layout, 'right', 0),
(self.close_btn, 'bottom', 10),
(self.close_btn, 'right', 10)])
pm.showWindow(self.window)
开发者ID:creuter23,项目名称:tools,代码行数:29,代码来源:aw_binaryProxy.py
示例4: _buildupWindow
def _buildupWindow(self):
if isinstance(self._window, _pmCore.uitypes.Window) and self._window.exists(self._window.name()):
_pmCore.deleteUI(self._window, window=True)
self._window = _pmCore.window(title=self._winTitle)
_pmCore.columnLayout(adjustableColumn=True)
_pmCore.scrollLayout(width=300, height=250, childResizable=True)
_pmCore.gridLayout(numberOfColumns=2, cellHeight = self._iconSize, cellWidth=self._iconSize)
for versionNum in _Database.getVersionList(self._fileID):
versionInfo = _Database.getVersionInfo(self._fileID, versionNum)
print versionInfo
thumbnailPath = versionInfo[3]
if not _os.path.exists(versionInfo[3]):
thumbnailPath = "cube.png"
button = _pmCore.iconTextButton(self._versionBtnName(versionNum), style='iconAndTextVertical', image1=thumbnailPath,
label=self._versionBtnName(versionNum), command=_pmCore.Callback(self._versionSelected, versionNum))
self._uiWidget[self._versionBtnName(versionNum)] = button
_pmCore.setParent('..')
_pmCore.setParent('..')
_pmCore.separator(style='none', height=10)
_pmCore.text(label="Comments: ", align='left')
self._uiWidget['commentLayout'] = _pmCore.scrollLayout(width=300, height=120, childResizable=True)
_pmCore.setParent('..')
_pmCore.separator(style='none', height=10)
self._uiWidget['comment'] = _pmCore.scrollField(width=300, height=80)
_pmCore.button(label='Add Comment', command=_pmCore.Callback(self._commentAdded))
开发者ID:juewang,项目名称:AssetManager2,代码行数:25,代码来源:MayaUI.py
示例5: __init__
def __init__(self, lightTransform, lightType, lightShape):
super(PointLight, self).__init__(lightTransform, lightType, lightShape)
pm.setParent(self.indivLight_layout)
pm.rowColumnLayout(nc=3)
pm.text(l='Decay Rate', w=140, al='right')
pm.text(l='', w=3)
decayRate_menu = pm.optionMenu(bgc=primary_componentColor)
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.connectControl(decayRate_menu, lightShape+'.decayRate')
pm.setParent(self.indivLight_layout)
pm.rowColumnLayout(nc=2)
pm.text(l='Shadow Settings', w=90, al='left', en=False)
pm.separator(w=marginWidth-90, h=14)
pm.setParent(self.indivLight_layout)
pm.attrFieldSliderGrp(at=lightShape+'.lightRadius', cw=[[2, 75], [3, 120]], hmb=False)
self.shadowRays_slide = pm.attrFieldSliderGrp(at=lightShape+'.shadowRays', cw=[[2, 75], [3, 120]], hmb=False)
pm.attrFieldSliderGrp(at=lightShape+'.rayDepthLimit', cw=[[2, 75], [3, 120]], hmb=False)
pm.setParent(lights_layout)
开发者ID:Huston94,项目名称:Simple_Lights_GUI,代码行数:25,代码来源:simple_lights_GUI.py
示例6: createUI
def createUI():
global m2uwin
if m2uwin is not None:
pm.deleteUI(m2uwin, window=True)
v = m2u.getVersion()
m2uwin = pm.window( title="m2u "+v+" (maya)", iconName='m2u',
widthHeight=(150, 300) )
pm.columnLayout()
pm.rowLayout(numberOfColumns = 2)
pm.button( label='Connect', c=cbConnect )
pm.button( label='Setup Cameras', c=cbSetupCamera )
pm.setParent('..')
pm.checkBox( label='Sync Camera', onc = cbSyncCamera,
ofc = cbSyncCameraOff, v = False)
pm.checkBox( label='Sync Objects', onc = cbSyncObjects,
ofc = cbSyncObjectsOff, v = False)
pm.checkBox( label='Sync Visibility', onc = cbSyncVisibility,
ofc = cbSyncVisibilityOff, v = False)
pm.separator()
pm.button( label='Fetch Selected', c = cbFetchSelected)
pm.button( label='Send Selected To Editor', c = cbSendSelectedToEd)
#pm.button( label='Import Content Test', c = cbUDKImportContent)
pm.setParent( '..' )
pm.showWindow( m2uwin )
开发者ID:m2u,项目名称:m2u,代码行数:25,代码来源:mayaInternalUI.py
示例7: initUI
def initUI(self):
pm.setUITemplate("DefaultTemplate", pushTemplate=True)
form = pm.formLayout()
versionData = pm.mayatoCorona(version=True)
license = versionData[7].split("\r\n")
with pm.columnLayout('AboutLayout') as StandinLayout:
with pm.rowColumnLayout('AboutColumnLayout', nc=2, columnWidth=((1, 160), (2, 220)), co=(2, "left", 10)):
pm.text(label="mayaToCorona:", align="right")
pm.text(label=versionData[0], align="left")
pm.text(label="Corna version:", align="right")
pm.text(label=versionData[1], align="left")
pm.text(label="OIIO:", align="right")
pm.text(label=versionData[2], align="left")
pm.text(label="OSL:", align="right")
pm.text(label=versionData[3], align="left")
pm.text(label="BOOST:", align="right")
pm.text(label=versionData[4], align="left")
pm.text(label="OpenEXR:", align="right")
pm.text(label=versionData[5], align="left")
pm.text(label="License type:", align="right")
pm.text(label=license[0], align="left")
pm.text(label="Valid until:", align="right")
pm.text(label=license[1].replace("Activated until: ", ""), align="left")
pm.separator()
with pm.columnLayout():
pm.text(label="Corona Renderer\n(c) Render Legion s.r.o., 2014-2015", align="center")
#pm.textField(text="Corona Renderer (c) Render Legion s.r.o., 2014-2015")
pm.formLayout(form, edit=True, attachForm=[(StandinLayout, 'top', 5), (StandinLayout, 'bottom', 5), (StandinLayout, 'right', 5), (StandinLayout, 'left', 5)])
pm.setUITemplate("DefaultTemplate", popTemplate=True)
开发者ID:haggi,项目名称:OpenMaya,代码行数:29,代码来源:menu.py
示例8: __init__
def __init__(self, *args, **kwargs):
kwargs['resizeToFitChildren'] = True
kwargs['sizeable'] = False
super(RigManager, self).__init__(*args, **kwargs)
with self._window:
with FluidColumnLayout(numberOfChildren = 1, attachBottom = False, attachRight = False):
self._columns = FluidColumnLayout(numberOfChildren = 3, padding = Format.PADDING, separation = Format.PADDING)
with self._columns:
self._createLayout = FluidRowLayout(numberOfChildren = 2, separation = Format.SEPARATION)
with self._createLayout:
self._nameInput = pm.textField(text = 'Rig', width = Format.Text.WIDTH, enterCommand = lambda *args: self.createRig())
self._createButton = pm.button(label = 'Create New', command = lambda *args: self.createRig(), width = Format.Button.WIDTH)
pm.separator()
self._listLayout = FluidColumnLayout()
self.populateRigList()
self._updateOnCreate = pm.scriptJob(
event = ['DagObjectCreated', self.populateRigList],
parent = self._window,
replacePrevious = True
)
self._window.show()
开发者ID:jenosavel,项目名称:jhRigBuilder,代码行数:33,代码来源:gui.py
示例9: __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')
开发者ID:aaronfang,项目名称:pbUV,代码行数:26,代码来源:pbUV.py
示例10: uiOptions
def uiOptions(self):
with pm.tabLayout(tv=False, imw=5, imh=5 ) as layout:
with pm.columnLayout(adj=1):
self.navFieldGrp( 'navFieldGrp', label='Work Path : ', text=self.startPath.get(), optVar=self.startPath, fileMode='dir' )
pm.separator(style='in', h=8)
with pm.rowLayout(nc=7):
pm.text(l=' Work : ', al='right', w=140 )
pm.button(l='Create', c=partial( self.btnCmd, 'create'), w=50 )
pm.button(l='Reload', c=partial( self.btnCmd, 'reload'), w=50 )
pm.button(l='Replace', c=partial( self.btnCmd, 'replace'), w=50 )
pm.button(l='Import', c=partial( self.btnCmd, 'import'), w=50 )
pm.button(l='Remove', c=partial( self.btnCmd, 'remove'), w=50 )
with pm.rowLayout(nc=7):
pm.text(l='',al='right', w=140 )
pm.button(l='Print Reference State', c=partial( self.btnCmd, 'state'), w=128 )
pm.separator(style='in', h=8)
with pm.rowLayout(nc=7):
pm.text(l='Maya Editor : ',al='right', w=140 )
pm.button(l='Reference Editor', c=pm.Callback( pm.mel.ReferenceEditor ), w=128 )
pm.button(l='Namespace Editor', c=pm.Callback( pm.mel.NamespaceEditor ), w=128 )
return layout
开发者ID:kyuhoChoi,项目名称:mayaTools,代码行数:25,代码来源:ui.py
示例11: __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()
开发者ID:cmcpasserby,项目名称:pbUDK,代码行数:33,代码来源:pbUDK.py
示例12: ui
def ui():
if pm.window(win, q=True, exists=True ):
pm.deleteUI(win)
with pm.window(win, wh=[300,600], t=title):
with pm.frameLayout( lv=False, cll=False, mw=1, mh=1):
with pm.columnLayout(adj=True):
with pm.tabLayout(tv=False):
with pm.frameLayout(lv=False, cll=False, mw=2, mh=2, bv=False):
with pm.rowLayout(nc=3, adj=2):
pm.image( image = shelfIcon )
pm.text(l=' %s'%title, fn='boldLabelFont', align='left')
pm.image( image = alfredIcon )
pm.separator( h=8, style='in')
with pm.frameLayout(lv=False, cll=False, mw=0, mh=0, bv=False):
with pm.frameLayout(lv=False, cll=False, mw=3, mh=3, bv=False):
# Scene -----------------------
with pm.frameLayout(l='Scene', cll=True, mw=3, mh=3 ):
with pm.columnLayout(adj=True):
with pm.rowLayout( nc=10 ):
pm.text(label='Reference Editor 2 : ', align='right', w=150)
pm.button(label='Open UI...', w=180, en=False )
with pm.rowLayout( nc=10 ):
pm.text(label='File Traveler : ', align='right', w=150)
pm.button(label='Open UI...', w=180, en=False )
# Camera -----------------------
with pm.frameLayout(l='Camera', cll=True, mw=3, mh=3 ):
with pm.columnLayout(adj=True):
with pm.rowLayout( nc=10 ):
pm.text(label='Create Camera : ', align='right', w=150)
with pm.columnLayout():
pm.button(label='Create Turntable Camera', w=180, en=False )
pm.button(label='Create Frustum Camera', w=180, en=False )
pm.button(label='Create Stereo Camera', w=180, en=False )
with pm.rowLayout( nc=10 ):
pm.text(label='Set Camera Playback Range : ', align='right', w=150)
pm.button(label='set', c=pm.Callback( sm.setCamPlaybackRange ), w=180 )
with pm.rowLayout( nc=10 ):
pm.text(label='HUD : ', align='right', w=150)
pm.button(label='Scene Name HUD', w=180, en=False )
with pm.rowLayout( nc=10 ):
pm.text(label='Export Camera : ', align='right', w=150)
pm.button(label='for After Effect...', w=180, en=False )
# Asset -----------------------
with pm.frameLayout(l='Asset', cll=True, mw=3, mh=3 ):
with pm.columnLayout(adj=True):
with pm.rowLayout( nc=10 ):
pm.text(label='Toggle Display CharacterGeo : ', align='right', w=150)
pm.button(label='( preview / render )', c=pm.Callback( sm.toggleDisplayCharacterGeo ), w=180 )
开发者ID:kyuhoChoi,项目名称:mayaTools,代码行数:60,代码来源:ui.py
示例13: ui_fixComponentShading
def ui_fixComponentShading(*args):
### UI setup
global UI_name
UI_name = [ 'chk_find', 'chk_fix', 'chk_layer', 'btn_run' ]
if pm.window( 'fix_component_shading', exists=True ):
pm.deleteUI( 'fix_component_shading', window=True )
ui_layout['window'] = pm.window( 'fix_component_shading', title='Fix Component Shading', sizeable=False, h=200, w=200 )
ui_layout['mainLayout'] = pm.columnLayout( columnAlign='left', columnAttach=['left', 0] )
pm.checkBox( UI_name[0], label=' Find Component Shading Object', value=1, w=200, p=ui_layout['mainLayout'] )
pm.checkBox( UI_name[1], label=' Fix Component Shading Object', w=200, p=ui_layout['mainLayout'] )
pm.checkBox( UI_name[2], label=' Fix Ecah Render Layer', w=200, p=ui_layout['mainLayout'] )
ui_layout['ui_sub1'] = pm.formLayout(p=ui_layout['mainLayout'] )
btn = pm.button( UI_name[3] ,label=' Execute !', command=pm.Callback( doExecution ), w=100, p=ui_layout['ui_sub1'] )
pm.formLayout( ui_layout['ui_sub1'], e=True, attachForm=[ (btn, 'left', 50 ) ] )
pm.separator( h=8, w=200, style='single', p=ui_layout['mainLayout'] )
ui_layout['ui_sub2'] = pm.columnLayout(p=ui_layout['mainLayout'] )
pm.text(label=' --- This script will keep the material \n in the CURRENT render layer, so \n it better to run it in MASTER layer! --- ', bgc=[0.05, 0.05, 0.05], align='left', p=ui_layout['ui_sub2'] )
pm.showWindow( ui_layout['window'] )
开发者ID:kzchen,项目名称:Maya_TD_tools,代码行数:26,代码来源:fixFaceAssignment_v05.py
示例14: uiContents
def uiContents():
with pm.frameLayout(l='Color', cll=True, mw=3, mh=3 ):
with pm.columnLayout(adj=True):
with pm.rowLayout(nc=2):
pm.text(label='Set Override Color : ', align='right', w=130)
with pm.rowColumnLayout( nc=10 ):
wh=18
for i in range(0,32):
rgb = (0,0,0)
if i == 0:
rgb = (0.5,0.5,0.5)
anno = 'Reset'
pm.symbolButton( i=iconPath+'ui_colorNone.png', annotation=anno, w=wh, h=wh, c=pm.Callback( setColor.setColor, color=i ) )
else:
rgb = pm.colorIndex( i, q=True )
anno = '- index : %d\n- RGB : %03.3f %03.3f %03.3f\n- name : %s'%(i, rgb[0], rgb[1], rgb[2], setColor.color_intToStr(i) )
pm.canvas(
rgbValue = rgb,
annotation = anno,
w=wh, h=wh,
pressCommand = pm.Callback( setColor.setColor, color=i )
) #partial( self.setColor, i, True , self._toShape)) #partial( self.setColor, i, False, False))
pm.separator(h=8,style='in')
with pm.rowLayout( nc=10 ):
pm.text(label='Set Wire Frame Color : ', align='right', w=130)
pm.button(label='Object Color Palette', c=pm.Callback( pm.mel.objectColorPalette ), w=180 )
# ======================================
# Buttons
# ======================================
开发者ID:kyuhoChoi,项目名称:mayaTools,代码行数:34,代码来源:ui.py
示例15: multi_MentalRaySettings
def multi_MentalRaySettings():
# Mental Ray Settings
pm.rowColumnLayout(nc=2)
pm.text(l='Mental Ray Settings', w=106, al='left', en=False)
pm.separator(w=marginWidth-106, h=14)
pm.setParent(multiLight_layout)
pm.rowColumnLayout(nc=2)
pm.text(l='', w=142) # GUI SPACER
multi_MrAreaLight_box = pm.checkBox('hp3dUseShapeCheckbox', l='Use Light Shape', cc=fun.partial(multi_checkboxChange, '.areaLight', 'area & spot', 'hp3dUseShapeCheckbox'))
pm.setParent(multiLight_layout)
pm.rowColumnLayout(nc=3)
pm.text(l='Type', w=140, al='right')
pm.text(l='', w=3)
multi_areaType_menu = pm.optionMenu('hp3dAreaTypeMenu', bgc=primary_componentColor, cc=fun.partial(multi_menuChange, '.areaType', 'area & spot', 'hp3dAreaTypeMenu'))
pm.menuItem(l='Rectangle', da=0)
pm.menuItem(l='Disc', da=1)
pm.menuItem(l='Sphere', da=2)
pm.menuItem(l='Cylinder', da=3)
pm.menuItem(l='Custom', da=4)
pm.setParent(multiLight_layout)
multi_highSamples = pm.intFieldGrp('hp3dHighSamplesField', numberOfFields=1, label='High Samples', v1=8, cc=fun.partial(multi_samplesChange, 'highSamp'))
multi_highSampLimit = pm.intFieldGrp('hp3dHighSampleLimitField', numberOfFields=1, label='High Sample Limit', v1=1, cc=fun.partial(multi_samplesChange, 'highSampLimit'))
multi_lowSamples = pm.intFieldGrp('hp3dLowSamplesField', numberOfFields=1, label='Low Samples', v1=1, cc=fun.partial(multi_samplesChange, 'lowSamp'))
pm.setParent(multiLight_layout)
开发者ID:Huston94,项目名称:Simple_Lights_GUI,代码行数:27,代码来源:simple_lights_GUI.py
示例16: _gatherEvents
def _gatherEvents(self, instance):
"""event collector called once after the first Idle Event"""
message = "Gathered events by '%s':\n" % instance
# get the Id for the key
inverseID=dict(zip(self.eventID.values(),self.eventID.keys()))
# prompt Result
for Id in self.eventRecord:
token = str(" ID %4d Event: %s \n" % (Id, inverseID.get(Id,0)))
message = message + token
# --------------create new UI entry---------------
objUI = self._UIobject.createTextfieldObj(message, "eventID: %s" % inverseID.get(self.eventRecord[0],0),True)
mel.setParent(objUI)
mel.frameLayout(mw=self._optionMarginWidth,l = 'Command Inspect', collapse = True, collapsable = True)
mel.columnLayout('subCol',adj=True)
mel.separator(h=self._optionMarginWidth,style="none")
mel.scrollField(numberOfLines=3, editable=False,
wordWrap=False, h = self._optionInspectHeight, w = self._optionInspectWidth, text = "place Holder" )
mel.separator(h=self._optionMarginWidth,style="none")
# reset Event Collection
self.eventRecord = []
self.eventID["idle"] = 0
开发者ID:freshNfunky,项目名称:intelligentMaya,代码行数:28,代码来源:monitorEvents.py
示例17: 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)
开发者ID:Huston94,项目名称:Simple_Lights_GUI,代码行数:35,代码来源:simple_lights_GUI.py
示例18: uiCreate
def uiCreate(self):
self.uiClose()
self.window = pm.window(
WIN_NAME,
title=SCRIPT_NAME,
maximizeButton=False
)
with self.window:
with pm.formLayout() as ui_LAY_mainForm:
with pm.scrollLayout(childResizable=True) as ui_LAY_mainScroll:
with pm.frameLayout(
label='Parameters',
collapsable=True,
marginHeight=3,
borderStyle='etchedIn',
borderVisible=True,
collapse=False
):
with pm.columnLayout(adjustableColumn=True, columnOffset=('both', 2)):
self.ui_FLTFLDGRP_xPos = pm.floatFieldGrp(numberOfFields=1, label='+X', precision=6)
self.ui_FLTFLDGRP_xNeg = pm.floatFieldGrp(numberOfFields=1, label='-X', precision=6)
self.ui_FLTFLDGRP_yPos = pm.floatFieldGrp(numberOfFields=1, label='+Y', precision=6)
self.ui_FLTFLDGRP_yNeg = pm.floatFieldGrp(numberOfFields=1, label='-Y', precision=6)
self.ui_FLTFLDGRP_zPos = pm.floatFieldGrp(numberOfFields=1, label='+Z', precision=6)
self.ui_FLTFLDGRP_zNeg = pm.floatFieldGrp(numberOfFields=1, label='-Z', precision=6)
pm.separator(style='none', height=5)
self.ui_BTN_create = pm.button(
label='Create',
height=MAIN_BUTTONS_HEIGHT,
command=self.ui_on_BTN_create_clicked
)
self.ui_BTN_close = pm.button(
label='Close',
height=MAIN_BUTTONS_HEIGHT,
command=self.uiClose
)
ui_LAY_mainForm.attachForm(ui_LAY_mainScroll, 'top', 2)
ui_LAY_mainForm.attachForm(ui_LAY_mainScroll, 'left', 2)
ui_LAY_mainForm.attachForm(ui_LAY_mainScroll, 'right', 2)
ui_LAY_mainForm.attachControl(ui_LAY_mainScroll, 'bottom', 2, self.ui_BTN_create)
ui_LAY_mainForm.attachNone(self.ui_BTN_create, 'top')
ui_LAY_mainForm.attachForm(self.ui_BTN_create, 'left', 2)
ui_LAY_mainForm.attachPosition(self.ui_BTN_create, 'right', 2, 50)
ui_LAY_mainForm.attachForm(self.ui_BTN_create, 'bottom', 2)
ui_LAY_mainForm.attachNone(self.ui_BTN_close, 'top')
ui_LAY_mainForm.attachPosition(self.ui_BTN_close, 'left', 2, 50)
ui_LAY_mainForm.attachForm(self.ui_BTN_close, 'right', 2)
ui_LAY_mainForm.attachForm(self.ui_BTN_close, 'bottom', 2)
self.setupInitialValues()
开发者ID:theetcher,项目名称:mayaExtensionsOld,代码行数:59,代码来源:fx_createBBox.py
示例19: initialiseLayout
def initialiseLayout(self):
#=======================================================================
# Define Top Level Layout
#=======================================================================
self.widgets['top_level_layout'] = pm.verticalLayout()
#=======================================================================
# Define Layout
#=======================================================================
# Title Layout
pm.setParent(self.widgets['top_level_layout'])
self.widgets['title_layout'] = pm.horizontalLayout()
pm.text('Multi Attributes')
pm.text('Connection Index')
pm.text('Connection Target')
#List Layout
pm.setParent(self.widgets['top_level_layout'])
self.widgets['list_layout'] = pm.horizontalLayout()
pm.setParent(self.widgets['list_layout'])
self.widgets["attributes_list"] = pm.textScrollList(selectCommand=self.refresh_connections)
pm.setParent(self.widgets['list_layout'])
self.widgets["index_list"] = pm.textScrollList(ams=True)
pm.setParent(self.widgets['list_layout'])
self.widgets["connections_list"] = pm.textScrollList(enable=False)
#refresh Button
pm.setParent(self.widgets['top_level_layout'])
self.widgets["refresh_button"] = pm.button(label="Load Selection", command=self.refresh)
# Add Attribute
pm.setParent(self.widgets['top_level_layout'])
pm.separator()
self.widgets['addAttr_layout'] = pm.horizontalLayout()
pm.text('Add Attribute:')
self.widgets['attr_name'] = pm.textField()
self.widgets["add_button"] = pm.button(label="Add", c=self.addAttr_selected)
# Misc Buttons
pm.setParent(self.widgets['top_level_layout'])
self.widgets['buttons_layout'] = pm.horizontalLayout()
self.widgets["append_button"] = pm.button(label="Append", command=self.append_selected)
self.widgets["remove_button"] = pm.button(label="Remove", command=self.remove_selected)
self.widgets["clear_button"] = pm.button(label="Clear", command=self.clear_selected)
#=======================================================================
# Redistribute
#=======================================================================
self.widgets['addAttr_layout'].redistribute(1,2,1)
self.widgets['list_layout'].redistribute()
self.widgets['title_layout'].redistribute()
self.widgets['buttons_layout'].redistribute()
self.widgets['top_level_layout'].redistribute(1,10,1,1,1,1)
开发者ID:adamfok,项目名称:afok_toolset,代码行数:59,代码来源:multi_attribute_viewer.py
示例20: info_area
def info_area():
global info_layout
info_layout = pm.rowColumnLayout(nc=5)
leftInfo_area()
pm.text(l='') # GUI SPACER
pm.separator(horizontal=False, h=50, w=13)
pm.text(l='') # GUI SPACER
rightInfo_area()
开发者ID:Huston94,项目名称:Simple_Lights_GUI,代码行数:9,代码来源:simple_lights_GUI.py
注:本文中的pymel.core.separator函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论