软件设计 2017-09-15
sel = getCurrentSelection() for a =1 to sel.count do ( if sel[a].modifiers[#skin] != undefined then ( channelInfo.ClearChannel sel[a] 0 --去顶点色 modPanel.setCurrentObject sel[a].baseObject --回到最底下层级 modPanel.addModToSelection(UVW_Mapping_Clear ()) --再加修改命令 deleteModifier $ 1 --再删除最上面的 maxOps.CollapseNodeTo sel[a] 2 off --塌陷到下方 ) else ( channelInfo.ClearChannel sel[a] 0 converttopoly sel[a] ) ) sel = getCurrentSelection() for a=1 to sel.count do ( if sel[a].modifiers[#skin] != undefined then ( channelInfo.ClearChannel sel[a] 2 --去顶点色 modPanel.setCurrentObject sel[a].baseObject --回到最底下层级 modPanel.addModToSelection(UVW_Mapping_Clear ()) --再加修改命令 deleteModifier $ 1 --再删除最上面的 maxOps.CollapseNodeTo sel[a] 2 off --塌陷到下方 ) else ( channelInfo.ClearChannel sel[a] 2 converttopoly sel[a] ) )