本文整理汇总了Python中maya.cmds.scrollField函数的典型用法代码示例。如果您正苦于以下问题:Python scrollField函数的具体用法?Python scrollField怎么用?Python scrollField使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了scrollField函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: registerNewAssetUI
def registerNewAssetUI(self,*args):
if cmds.window('ramAssetRegisterNew', exists=True):
cmds.deleteUI('ramAssetRegisterNew', window=True)
cmds.window('ramAssetRegisterNew',t='Register New Asset', s=False,mxb=False,mnb=False)
cmas=cmds.columnLayout(adj=True)
cmds.rowColumnLayout(nc=2,cw=[(1,60),(2,220)])
cmds.text(l='Name : ',fn='boldLabelFont', al='left')
cmds.textField('assetNewName',w=220)
cmds.text(l='Keyword : ',fn='boldLabelFont', al='left')
cmds.textField('assetNewKey',w=220)
cmds.text(l='')
cmds.text(l='note : separate keyword with comma',al='left',fn='smallObliqueLabelFont')
cmds.text(l='Type : ',fn='boldLabelFont', al='left')
cmds.optionMenu('assetNewOption',w=220)
cmds.menuItem(l='')
cmds.menuItem(l='CHAR')
cmds.menuItem(l='PROP')
cmds.menuItem(l='SETS')
cmds.text(l='Stage : ',fn='boldLabelFont', al='left')
cmds.optionMenu('assetNewStage',w=220)
cmds.menuItem(l='')
cmds.menuItem(l='model')
cmds.menuItem(l='shader')
cmds.menuItem(l='rig')
cmds.text(l='Descript : ',fn='boldLabelFont', al='left')
cmds.scrollField('newAssetScrollField',wordWrap=True,h=100)
cmds.separator(p=cmas)
cmds.button(l='REGISTER AND UPLOAD',p=cmas,c=self.registerNewAssetRecord)
cmds.showWindow()
return
开发者ID:andrewwillish,项目名称:veRegistrarFileManager,代码行数:35,代码来源:veRegAssetManager.py
示例2: ui
def ui():
"""
User interface for convert rotation order
"""
with utl.MlUi(
"ml_convertRotationOrder",
"Convert Rotation Order",
width=400,
height=140,
info="""Select objects to convert and press button for desired rotation order.
Use the "Get Tips" button to see suggestions for a single object on the current frame.""",
) as win:
mc.button(label="Get tips for selection", command=loadTips, annotation="")
mc.scrollField("ml_convertRotationOrder_nodeInfo_scrollField", editable=False, wordWrap=True, height=60)
mc.rowColumnLayout(numberOfColumns=2, columnWidth=[(1, 100), (2, 400)], columnAttach=[2, "both", 1])
for each in ROTATE_ORDERS:
_BUTTON[each] = win.buttonWithPopup(
label=each,
command=globals()[each],
annotation="Convert selected object rotate order to " + each + ".",
shelfLabel=each,
)
mc.textField("ml_convertRotationOrder_" + each + "_textField", editable=False)
resetTips()
开发者ID:Italic-,项目名称:maya-prefs,代码行数:28,代码来源:ml_convertRotationOrder.py
示例3: textEdit
def textEdit(self):
textNewFiles = self.textFile()
textNewFiles.reverse()
stringPaths = ''
for item in textNewFiles:
stringPaths = item + '\n' + stringPaths
mc.scrollField( self.txtField, e=1, tx=stringPaths )
开发者ID:chuckbruno,项目名称:Python_scripts,代码行数:7,代码来源:txtFile_new_02.py
示例4: populateNotesField
def populateNotesField(self,*args):
#get notes date and assetId
selNotesDateVar=cmds.textScrollList('notesList',q=True,si=True)
if selNotesDateVar==None:
raise StandardError, 'error : no notes selected'
selNotesDateVar=selNotesDateVar[0]
selAssetVar=cmds.textScrollList('assetTextScroll', q=True, si=True)
if selAssetVar==None:
raise StandardError, 'error : no asset selected'
selAssetVar=selAssetVar[0]
#find asset ID
assetIdVar=''
for chk in veRegCore.listAssetTable():
if chk[1]==str(selAssetVar):
assetIdVar=chk[0]
if assetIdVar=='':
cmds.confirmDialog(icn='warning', t='Error', m='Database anomaly no asset found.', button=['OK'])
raise StandardError, 'error : database anomaly asset not found'
for chk in veRegCore.listAssetNotes():
if chk[4]==selNotesDateVar and str(assetIdVar) == str(chk[1]):
cmds.textField('notesTitleInfo',e=True,tx=str(chk[2]))
cmds.textField('notesAuthorInfo',e=True,tx=str(chk[3]))
cmds.textField('notesDateInfo',e=True,tx=str(chk[4]))
cmds.scrollField('notesMessageInfo',e=True,tx=str(chk[5]))
return
开发者ID:andrewwillish,项目名称:veRegistrarFileManager,代码行数:27,代码来源:veRegAssetManager.py
示例5: getDestin
def getDestin():
testDir = FileDirectory()
cmds.scrollField(destField, e=1, text=testDir.getPath())
destinPath = cmds.scrollField( destField, q=True, text=True)
destFiles = os.listdir(destinPath)
tslDestin.remAllItems()
tslDestin.appendAll(destFiles)
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:7,代码来源:fileSeq.py
示例6: gui
def gui():
'''
Generates the interface for the file sequencer.
'''
if( cmds.window(win, ex=True) ):
cmds.deleteUI(win)
if( cmds.windowPref(win, ex=True) ):
cmds.windowPref(win, r=True)
cmds.window(win, h=500, w=400)
mainCol = cmds.columnLayout()
cmds.rowColumnLayout(nc=2, cw=[[1,200],[2,200]])
global targField, destField, tslTarget, tslDestin
targField = cmds.scrollField( w=200, h=50, editable=False, wordWrap=True, text='Non editable with word wrap' )
destField = cmds.scrollField( w=200, h=50, editable=False, wordWrap=True, text='Non editable with word wrap' )
cmds.button(label="Load Target", c=Callback(getTarget))
cmds.button(label="Load Destination", c=Callback(getDestin))
cmds.text(label = "Target Files")
cmds.text(label = "Destination Files")
tslTarget = TextScrollList(200, 200)
tslDestin = TextScrollList(200, 200)
cmds.setParent(mainCol)
# Inputs
fieldsGUI(mainCol)
cmds.showWindow(win)
print("Interface executed.")
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:34,代码来源:fileSeq.py
示例7: mainModule
def mainModule(self):
cmds.rowColumnLayout(nc=2,cw =[(1,130),(2,285)]) #etchedOut rowlumnLayout.str#
cmds.frameLayout(label=self.moduleLabel,mw =1 ,mh =3,bs="etchedOut",cl= 0,cll=0 ,h=self.hgt)
cmds.symbolButton(h= 80,image= 'sphere.png' )
#cmds.rowColumnLayout( numberOfRows=1 ) #Side rowlumnLayout.str#
#cmds.setParent('..') #Side rowlumnLayout.end#
cmds.setParent('..') #etchedOut rowlumnLayout.end#
cmds.frameLayout(label='options:',mw =1 ,mh =3,bs="etchedOut",cl= 0,cll=0 ,h= self.hgt)
#optionsForm = cmds.formLayout()
cmds.rowColumnLayout(nc=5,cw =[(1,50),(2,50),(3,50),(4,50),(5,50)])
cmds.text(l='joint:')
cmds.text(l='fingers:')
cmds.text(l='no:')
cmds.text(l='segment:')
cmds.text(l='symmetry:')
cmds.textField()
cmds.checkBox(l ="" )
cmds.textField()
cmds.textField()
cmds.checkBox(l ="" )
#cmds.formLayout(optionsForm ,e=1,)
cmds.setParent('..')
cmds.rowColumnLayout( numberOfRows=1 )#Side: .str
cmds.text(l=' Side: ')
cmds.radioButtonGrp(nrb=2 ,la2=["L","R"] ,cw2=[30 ,30],sl =1)
cmds.scrollField(wordWrap =1,text ="creates arm skeleton template setup. ideal use: any arm Humans, Insects.." ,editable= 0,h=80,w=180)
cmds.setParent('..')##Side: .end
cmds.setParent('..')
cmds.setParent('..')
cmds.separator(height =3 ,style= "none" )
开发者ID:wangqinghuaTudou,项目名称:test,代码行数:34,代码来源:Ui.py
示例8: copy
def copy():
skin_cluster = None
mesh_name = None
selection = cmds.ls(sl=True)
if selection:
mesh_name = selection[0]
shape = cmds.listRelatives(selection[0])
skin_clusters = cmds.listConnections(shape[0], type='skinCluster')
if skin_clusters:
skin_cluster = skin_clusters[0]
else:
cmds.error('No skin cluster present')
else:
cmds.error('No valid selection')
bones = cmds.skinCluster(skin_cluster, q=True, inf=True)
num_verts = cmds.polyEvaluate(mesh_name, v=True)
data = dict()
for bone in bones:
data[bone] = []
for id in range(num_verts):
data[bone].append(cmds.skinPercent(skin_cluster, '{0}.vtx[{1}]'.format(mesh_name, id), q=True, t=bone))
pickled_list = pickle.dumps(data)
cmds.scrollField('jt_copy_skin_values_field', e=True, tx=pickled_list)
cmds.skinCluster(mesh_name, e=True, ub=True)
开发者ID:MaxIsJames,项目名称:jt_tools,代码行数:29,代码来源:jt_copy_skin.py
示例9: SundayWarehouseBrowserUpdateInfo
def SundayWarehouseBrowserUpdateInfo(file):
asset = cmds.iconTextRadioButton(cmds.iconTextRadioCollection('whAssetCollection', query = True, select = True), query = True, annotation = True)
f = open(file + '/' + asset + '.info', 'r')
importNotes = eval(f.read())
printNotes = 'Asset Name : ' + asset
printNotes = printNotes + '\n'
printNotes = printNotes + 'Author : ' + str(importNotes['Author']) + ' | Version : ' + str(importNotes['Version']) + ' | Render : ' + str(importNotes['Render'])
printNotes = printNotes + '\n'
printNotes = printNotes + 'Notes : ' + str(importNotes['Notes'])
printNotes = printNotes + '\n'
sourceImages = file + '/' + 'sourceimages' + '/'
texList = ''
if os.path.isdir(sourceImages):
for curTex in os.listdir(sourceImages):
if curTex != '.DS_Store':
texList = texList + '-' + curTex + ' '
continue
printNotes = printNotes + 'Textures : ' + texList
cmds.scrollField('whInfoTextBrowser', edit = True, text = printNotes)
cmds.checkBox('whBrowseUseNameSpace', edit = True, label = 'Use Name Space (' + asset + ')')
assetPath = os.path.dirname(cmds.iconTextRadioButton(cmds.iconTextRadioCollection('whAssetCollection', query = True, select = True), query = True, label = True))
pythonFile = assetPath + '/' + os.path.basename(assetPath) + '.py'
if os.path.exists(pythonFile):
cmds.checkBox('whRunPostImportScript', edit = True, enable = True)
else:
cmds.checkBox('whRunPostImportScript', edit = True, enable = False)
开发者ID:elliottjames,项目名称:jeeves,代码行数:28,代码来源:SundayWarehousePy.py
示例10: loadDisc
def loadDisc():
'''
When a type of script job is selected in the textScrollList the discription of that
event will be posted in the adjacent scrollField.
'''
# Get RadioButton
selectedRC = cmds.radioCollection(radioCol, q=True, sl=True)
xmlDict = { "mecSJEvent":"Events", "mecSJAttr":"attributes", "mecSJCond":"Conditions",
"mecSJNode":"nodeNameChanged", "mecSJConn":"connectionChange", "mecSJUI":"uiDeleted",
"mecSJTime":"timeChange"}
# get selected element from the textScrollList
# Get which event was selected. Only the first item will be addressed.
selectedTSL = cmds.textScrollList(tsl, q=True, si=True)[0]
# Access proper tag from xml file
elem = sjXML.getroot()
sjType = xmlDict[selectedRC]
curSel = elem.find(sjType)
# find which type is selected.
disc = ""
for item in curSel:
if( item.text == selectedTSL ):
disc = item[0].text
# apply disc name to the scrollField
cmds.scrollField( sfDisc, edit=True, text=disc)
sjModeSwitch()
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:30,代码来源:mecSJCreate.py
示例11: continueOutputFunction
def continueOutputFunction():
gradeOutputTotal=cmds.intFieldGrp( "gradeIntField", q=1, value1=1)
lateGradeOutputTotal=cmds.intFieldGrp( "lateGradeIntField", q=1, value1=1)
totalGradeOutputTotal=cmds.intFieldGrp( "totalGradeIntField", q=1, value1=1)
# Queries the Grade comments for output
aanqTSListOutput=cmds.scrollField("aanqTSList", q=1, tx=1)
cflTSListOutput=cmds.scrollField("cflTSList", q=1, tx=1)
lightTSTSListOutput=cmds.scrollField("lightTSList", q=1, tx=1)
proTSListOutput=cmds.scrollField("proTSList", q=1, tx=1)
# Formats the comments for output
sceneFileOutput=open(selectedFileName+".txt", 'w')
sceneFileOutput.write("Grading for: "+sceneFileName+"\r\n")
sceneFileOutput.write("-----------------------------------\r\n")
sceneFileOutput.write("Lighting Comments: "+lightTSTSListOutput+"\r\n")
sceneFileOutput.write("Lighting Grade: "+str(lightGradeTotal)+"\r\n")
sceneFileOutput.write("\r\n")
sceneFileOutput.write("Grade Total: "+str(gradeOutputTotal)+"\r\n")
sceneFileOutput.write("-----------------------------------\r\n")
sceneFileOutput.write("Deduction Comments:\r\n")
sceneFileOutput.write("Composition & Focal Length Comments: "+cflTSListOutput+"\r\n")
sceneFileOutput.write("Antialiasing & Noise Quality Comments: "+aanqTSListOutput+"\r\n")
sceneFileOutput.write("Professionalism Comments: "+proTSListOutput+"\r\n")
sceneFileOutput.write("-----------------------------------\r\n")
sceneFileOutput.write("Comp/Focal Len Deductions (15%): -"+str(cflDisplayGradeTotal)+"\r\n")
sceneFileOutput.write("Alias/Noise Deductions (15%): -"+str(aanqDisplayGradeTotal)+"\r\n")
sceneFileOutput.write("Prof Deductions (10%): -"+str(proDisplayGradeTotal)+"\r\n")
sceneFileOutput.write("Late Deductions: -"+str(lateGradeOutputTotal)+"\r\n")
sceneFileOutput.write("-----------------------------------\r\n")
sceneFileOutput.write("Overall Grade Total: "+str(totalGradeOutputTotal)+"\r\n")
sceneFileOutput.close()
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:30,代码来源:SAL_GradingScript_Project_03_v3.py
示例12: remoteMayaUI
def remoteMayaUI(*args):
if MC.window("remoteMayaUI_WIN", ex=1):
MC.deleteUI("remoteMayaUI_WIN")
MC.window("remoteMayaUI_WIN", t="REMOTE MAYA", tlb=1, s=0, mb=0)
MC.columnLayout()
MC.rowLayout("HOLDER", nc=4, enable=1)
0; MC.text(label=" Episode")
0; MC.optionMenu("EPISODES_OPTIONMENU", changeCommand=refreshShotList)
0; MC.text("SHOT_TEXT", label=" Shot", enable=0)
0; MC.optionMenu("SHOTS_OPTIONMENU", changeCommand="pass", enable=0)
MC.menuItem(label="", p="SHOTS_OPTIONMENU", enable=0)
episodePath = "Y:/01_SAISON_4/09_EPISODES/03_Fabrication_2D/"
episodeList = [x for x in os.listdir(episodePath) if len(x) >= 3 and x[:3] == "YKR"]
0; MC.setParent("..")
MC.menuItem("VOID", label="...", p="EPISODES_OPTIONMENU")
for episode in episodeList:
MC.menuItem(label=episode, p="EPISODES_OPTIONMENU")
MC.rowLayout(nc=2)
0; MC.text(l="", w=68)
0; QtButton(handle="INSPECT", label="INSPECT", action=inspectShot,
lineColor=(100,240,100), background=(60,120,60),
borderRadius=14, paddingTBLR=(0,0,0,0), margin=0, w=120, h=30,
fontFamily="Arial", fontSize=16, fontWeight="bold")
MC.setParent("..")
MC.textField("COMMAND_TEXTFIELD", text = "", changeCommand=mayaClient.manualCommand)
MC.scrollField("PNG_UNIVERSAL_LOG", h=430, font="plainLabelFont", editable=False, wordWrap=True, text="Ready...\n", bgc=(.2,.2,.2))
MC.progressBar("PNG_PROGRESS_BAR", h=16, w=260, manage=0)
MC.showWindow("remoteMayaUI_WIN")
MC.window("remoteMayaUI_WIN", edit=True, w=600, h=300)
开发者ID:GuidoPollini,项目名称:MuTools,代码行数:33,代码来源:remoteMaya_client.py
示例13: LocateAllModoIblNodes
def LocateAllModoIblNodes():
nodes = []
for node in cmds.ls(type="modoEnvironment"):
linkedNode = cmds.defaultNavigation(destination=node + ".environmentColor", defaultTraversal=True)
#check if there's a file node plugged in and create one if there's not
if linkedNode == []:
fileNode = cmds.shadingNode('file', asTexture=True)
linkedNode = cmds.defaultNavigation(connectToExisting=True, source=fileNode, destination="%s.environmentColor" % node, force=True)
if(linkedNode == None):
continue
#break out of the array the first entry
linkedNode = linkedNode[0]
if(cmds.nodeType(linkedNode) != "file"):
continue
#we have a texture, but check to see that it's lat/long mapped.
if(cmds.attributeQuery("format", node=str(node), exists=True)):
mappingType = cmds.getAttr(node+".format")
if(mappingType != 2):
cmds.scrollField("rendererErrorText", edit=True, text="Selected modo Environment node is mapped to use non-spherical mapping.")
continue
#everything look valid
strAttribute = str(linkedNode) + ".fileTextureName"
#craft an entry for the node list
entry = strAttribute, node, linkedNode
nodes.append(entry)
return nodes
开发者ID:michimussato,项目名称:PyPELyNE,代码行数:33,代码来源:HdrlsLiveUI.py
示例14: loadHotkeys
def loadHotkeys(self, defaults=False):
allHotkeys = hotkeys.getHotkeys()
hotkeysDict = []
for n, loopHotkey in enumerate(allHotkeys):
for loopItem in loopHotkey:
hotkeysDict.append(loopItem)
for loopIndex, loopCommand in enumerate(hotkeysDict):
command = loopCommand["command"]
name = loopCommand["name"]
key = loopCommand["hotkey"]
alt = loopCommand["alt"]
ctl = loopCommand["ctl"]
toolTip = loopCommand["toolTip"]
if not defaults:
hotkeyData = aToolsMod.loadInfoWithUser("hotkeys", name)
if hotkeyData != None:
key = hotkeyData[0]
alt = hotkeyData[1]
ctl = hotkeyData[2]
cmds.checkBox('ctl%s'%name, edit=True, value=ctl)
cmds.checkBox('alt%s'%name, edit=True, value=alt)
cmds.scrollField('key%s'%name, edit=True, text=key)
self.updateHotkeyCheck(name)
开发者ID:Italic-,项目名称:maya-prefs,代码行数:33,代码来源:generalToolsUI.py
示例15: update_sF_expString
def update_sF_expString( ):
global g_tSL_expNode
global g_sF_expString
strlSel = mc.textScrollList(g_tSL_expNode, q=True, si=True )
expString = mc.expression( strlSel[0], q=True, string=True)
mc.scrollField( g_sF_expString, edit=True, text=expString )
开发者ID:smymc,项目名称:Maya-Python,代码行数:7,代码来源:kmExpImpExp.py
示例16: 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
示例17: reloadInfo
def reloadInfo():
'''
'''
# Get UI Data
blendShape = mc.textScrollList('bsMan_blendShapeTSL',q=True,si=True)
if not blendShape: blendShape = ['']
base = mc.textScrollList('bsMan_baseGeomTSL',q=True,si=True)
if not base: base = ['']
target = mc.textScrollList('bsMan_targetsTSL',q=True,si=True)
if not target: target = ['']
# Get Derived Data
baseIndex = ''
targetGeo = ''
targetIndex = ''
if base[0]: baseIndex = glTools.utils.blendShape.getBaseIndex(blendShape[0],base[0])
if target[0]: targetGeo = glTools.utils.blendShape.getTargetGeo(blendShape[0],target[0],base[0])
if target[0]: targetIndex = glTools.utils.blendShape.getTargetIndex(blendShape[0],target[0])
infoTxt = 'BlendShape: '+blendShape[0]+'\n'
infoTxt += 'Base Geometry: '+base[0]+'\n'
infoTxt += 'Base Index: '+str(baseIndex)+'\n'
infoTxt += 'Target Name: '+target[0]+'\n'
infoTxt += 'Target Geometry: '+targetGeo+'\n'
infoTxt += 'Target Index: '+str(targetIndex)
mc.scrollField('bsMan_infoSF',e=True,text=infoTxt)
开发者ID:auqeyjf,项目名称:glTools,代码行数:27,代码来源:blendShape.py
示例18: createNoticeWin
def createNoticeWin(self):
"""提示文件窗口"""
noticeWindow = cmds.window(title = "Notice", iconName = "notice")
cmds.columnLayout()
noticeText = getNoticeText(noticeTextPath)
cmds.scrollField(width = 600, height = 300, editable = False, wordWrap = True, text = noticeText)
cmds.showWindow(noticeWindow)
开发者ID:chloechan,项目名称:clothAndHair,代码行数:7,代码来源:noticeInfor.py
示例19: makeAppFolders
def makeAppFolders( tabLayout, title, cmdType, folderPath ):
childArr = cmds.tabLayout( tabLayout, q=1, ca=1 )
tabLabels = cmds.tabLayout( tabLayout, q=1, tabLabel=1 )
appFolder = folderPath+'/'+ title
deletePath( appFolder )
if cmdType == 'python':
initPath = appFolder+'/__init__.py'
makeFile( initPath )
for i in range( len( childArr ) ):
childUi = childArr[i]
tabLabel = tabLabels[i].replace( ' ', '_' )
srcFile = appFolder+'/'+tabLabel+'.py'
makeFile( srcFile )
f = open( srcFile, 'w' )
f.write( cmds.scrollField( childUi, q=1, tx=1 ) )
f.close()
elif cmdType == 'mel':
for i in range( len( childArr ) ):
childUi = childArr[i]
tabLabel = tabLabels[i].replace( ' ', '_' )
srcFile = appFolder+'/'+tabLabel+'.mel'
makeFile( srcFile )
f = open( srcFile, 'w' )
f.write( cmds.scrollField( childUi, q=1, tx=1 ) )
f.close()
开发者ID:jonntd,项目名称:mayadev-1,代码行数:34,代码来源:cmdModel.py
示例20: switch_module
def switch_module(self,dishName,dishFile,*args):
archive = zipfile.ZipFile(dishFile, 'r')
jsonFile = archive.read('dish.ini')
jsondata = json.loads(jsonFile)
archive.close()
#Clear chld
chldrn = mc.layout( self.InfosTab, query=True, childArray=True )
for chld in chldrn:
mc.deleteUI(chld)
#-------------------------------------------------------------------
mc.columnLayout( adjustableColumn=True ,p=self.InfosTab ,rs=5)
header = """<html>
<body>
<h1>%s</h1></body>
</html>
"""%(dishName )
self.dishType = dishName
mc.text( self.module,e=True,l=header,font='boldLabelFont')
mc.scrollField( editable=False, wordWrap=True, text=jsondata['moduleInfos'] ,h=140)
mc.separator()
mc.text( l='name bank')
mc.columnLayout( adjustableColumn=True)
LimbMenu = mc.optionMenu( label='',w=224 )
mc.menuItem( label='NONE')
mc.setParent('..')
mc.button(l='Open name composer',h=28)
mc.optionMenu( LimbMenu ,e=True,changeCommand=partial(self.composePrfX,LimbMenu))
self.dishPrfx = mc.textField()
mc.button(l='Import', h=42,c=self.validate_dish_before_merge )
开发者ID:cedricB,项目名称:circeCharacterWorksTools,代码行数:32,代码来源:manager.py
注:本文中的maya.cmds.scrollField函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论