//属性连接
import maya.cmds;
set=cmds.ls(sl=True);
cmds.connectAttr(set[0]+'.t',set[1]+'.t');
cmds.connectAttr(set[0]+'.r',set[1]+'.r');
cmds.connectAttr(set[0]+'.s',set[1]+'.s');
cmds.connectAttr(set[0]+'.visibility',set[1]+'.visibility');
//创建组
import maya.cmds as cmds
Geometry=cmds.group( em=True, name='Geometry_GRP')
Master=cmds.group(em=True, name='Master_geoGRP')
Cloth=cmds.group(em=True, name='Cloth_geoGRP')
DynGeo=cmds.group(em=True, name='Dyn_geoGRP')
Proxy=cmds.group(em=True, name='Proxy_geoGRP')
Body=cmds.group(em=True, name='Body_geoGRP')
base=cmds.group(em=True, name='base_grp')
other=cmds.group(em=True, name='other_grp')
DynGRP=cmds.group(em=True, name='Dyn_GRP')
hairSystem=cmds.group(em=True, name='hairSystem_grp')
OutputCV=cmds.group(em=True, name='Hair_Output_CV')
InputCV=cmds.group(em=True, name='Hair_Input_CV')
cmds.parent( base,other,Body )
cmds.parent( Body,Cloth,DynGeo,Master )
cmds.parent( Master,Proxy,Geometry )
cmds.parent( hairSystem,OutputCV,InputCV,DynGRP )
Maya属性连接、创建组
最新推荐文章于 2023-02-24 17:24:52 发布