国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設計 > 正文

maya cmds 筆記_1

2019-11-08 03:19:59
字體:
供稿:網(wǎng)友
cmds.addExtension(nodeType='mesh', shortName='ms', longName='mass',defaultValue=1, minValue=0.001, maxValue=100)

為mesh類型的節(jié)點添加mass屬性, 不管是已經(jīng)有的mesh節(jié)點還是以后創(chuàng)建的mesh節(jié)點,

cmds.cutKey('cube1', time=(10,20), attribute='translateX', option='keys')

剪切cube1.translateX的關鍵幀10到20之間


cmds.listSets(type=1, object='coneShape1')

列出場景里包含物體coneShape1的渲染set節(jié)點,(基本可以看做為找shadingEngine節(jié)點)

cmds.sets('set1',q=True)

列出集合set1的所有子元素

cmds.ls(sl=True, dag=True, visible=True, type='mesh')

列出拾取節(jié)點(包括)下的所有顯示的mesh的dag節(jié)點(遞歸)

cmds.listRelatives('group1', allDescendents=True)

列出group1節(jié)點下的所有allDescendents節(jié)點(遞歸)


cmds.listConnections('lambert1', source=True, destination=False, plugs=True)

列出節(jié)點lambert1的來源鏈接節(jié)點的屬性 connections 列出自身被鏈接屬性

cmds.connectAttr('firstGuy.t', 'secondGuy.t')

將firstGuy.t屬性鏈接至secondGuy.t屬性上

cmds.disconnectAttr('firstGuy.t', 'secondGuy.t')

斷開firstGuy.t與secondGuy.t的鏈接


cmds.polyEvaluate('coneShape1', face=True)

查詢多邊形coneShape1的面數(shù)

cmds.xform(pCube1, q=True, worldSpace=True, pivots=True)

查詢物體軸心點世界坐標

cmds.xform(pCube1, q=True, worldSpace=True, translation=True)

查詢物體位移的世界位移

cmds.pointPosition('pCube1.vtx[1]', world=True)

獲取多邊形點的世界位置

cmds.xform('pCube1.vtx[1]', worldSpace=True, translation=[1, 0, 0])

設置多邊形物體點坐標

cmds.getParticleAttr('particleShape1.pt[0]', attribute='pos')

獲取粒子particleShape1的0號粒子的pos屬性

cmds.poitnOnCurve('curve1', parameter=2.5 position=True, tangent=True, normal=True)

查詢曲線在u=2.5的點的位置,切線,法線


cmds.renderer(q=True, namesOfAvailableRenderers=True)

查詢當前渲染器

cmds.setAttr('defaultRenderGlobals.currentRenderer', 'mayaSoftware', type='string')

設置當前渲染器為mayaSoftware

cmds.setAttr('defaultResolution.w', 1920)cmds.setAttr('defaultResolution.h', 1080)

設置渲染尺寸

cmds.editRenderLayerMembers('layer1', q=True)

查詢渲染層layer1中的所有物體

cmds.editRenderLayerGlobals(q=True, currentRenderLayer=True)

查詢當前渲染層


cmds.internalVar(userWorkspaceDir=True)

查詢工程文件夾目錄

cmds.internalVar(userAppDir=True)

查詢maya文件夾目錄(我的文檔maya)

cmds.file(q=True, sceneName=True, shortName=True)

查詢當前工程名稱

cmds.currentUnit(q=True, linear=True)

查詢當前工程的長度單位

playbackOptions(q=True, max=True)

查詢時間軸長度

cmds.optionVar(floatValue=['playbackMaxDefault', 200])

設置默認時間軸最大值

cmds.dirmap(mapDirectory=('/sw', 's:'))

設置路徑映射

cmds.headsUpDisplay('test', section=9, block=cmds.headsUpDisplay(nextFreeBlock=9), blockSize='large', label='test show', labelWidth=105, dataWidth=65,command=test_func, event='timeChanged')

設置動態(tài)顯示


cmds.draggerContext('test', PRessCommand=onPress, dragCommand=onDrag, cursor='cursorHair', undomode='step')

設置鼠標拖拽事件

cmds.waitCursor(state=True)

鼠標等待狀態(tài)

cmds.waitCursor(state=False)

鼠標正常狀態(tài)


cmds.pluginInfo('AbcImport',q=True,loaded=True)

查詢插件AbcImport是否加載

cmds.loadPlugin('AbcImport')

加載插件AbcImport


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 诸城市| 塔河县| 平乡县| 台南县| 娄烦县| 收藏| 松潘县| 仙桃市| 华容县| 怀远县| 景洪市| 岳池县| 保亭| 肇州县| 兴山县| 当雄县| 宁远县| 平南县| 亚东县| 确山县| 开江县| 富锦市| 崇信县| 调兵山市| 姜堰市| 营山县| 来凤县| 龙胜| 寿光市| 小金县| 台江县| 新和县| 宾阳县| 河曲县| 浙江省| 历史| 崇文区| 三原县| 永新县| 沾化县| 互助|