bool IExtensionPlugin.InitializePlugin() { totalMenuName = GetMayaWindowName(); cds.AddRange(BasicFunc.GetCommandDatas()); cds.AddRange(BindHumanBody.GetCommandDatas()); cds.AddRange(DynamicConverter.GetCommandDatas()); cds.AddRange(JointProcess.GetCommandDatas()); cds.AddRange(MaterialManage.GetCommandDatas()); cds.AddRange(BindAttr.GetCommandDatas()); cds.AddRange(Selector.GetCommandDatas()); cds.AddRange(BindSwitch.GetCommandDatas()); cds.AddRange(MeshTool.GetCommandDatas()); foreach (CommandData cd in cds) { AddOneCommand(cd); } //int paramInt = (int)MPCMap.MPCType.Test; //AddMenuItem("Test", totalMenuName, "InazumaCommand", paramInt); //string subMenuName_bodyBind = AddSubMenu(totalMenuName, "Body Bind", true); //string subMenuName_create = AddSubMenu(totalMenuName, "Create", true); //paramInt = (int)MPCMap.MPCType.AddRPIK; //AddMenuItem("add rpik", subMenuName_bodyBind, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.AddRPIKPole; //AddMenuItem("add rpik pole", subMenuName_create, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.CreateCTL_CrysTal; //AddMenuItem("create cystal ctl", subMenuName_create, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.AddChildCtl; //AddMenuItem("add child ctl", subMenuName_create, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.AddParentCtl; //AddMenuItem("add parent ctl", subMenuName_create, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.AddReverseFootBones; //AddMenuItem("add reverse foot bones", subMenuName_create, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.BindReverseFootRPIK; //AddMenuItem("Bind Reverse Foot RPIK", subMenuName_bodyBind, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.BindFinger_CTL_L; //AddMenuItem("Bind Finger using CTL L", subMenuName_bodyBind, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.CreateJointsCurve; //AddMenuItem("Create Joints Curve", subMenuName_create, "InazumaCommand", paramInt); //paramInt = (int)MPCMap.MPCType.MakeHairJointsChain; //AddMenuItem("Make Hair Joints To Chain", subMenuName_bodyBind, "InazumaCommand", paramInt); Debug.Log("-回港了-"); return(true); }