上区别图
上工具图
上码
function ColorAlphaClear =
(
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 --去Alpha
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]
)
)
sel = getCurrentSelection()
for a=1 to sel.count do
(
if sel[a].modifiers[#skin] != undefined then
(
--channelInfo.ClearChannel sel[a] 2 --去uv2
--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]
)
)
messagebox("ok")
)
rollout cn_rollout "ColorAplhaClear"
(
button createNormalsButton "ok" width:150
button aboutButton "about" width:150
on createNormalsButton pressed do
(
ColorAlphaClear()
)
on aboutButton pressed do
(
message = StringStream ""
format "Selected Mode ColorAlphaClear\...................." cn_rollout_VERSION to:message
messageBox message
)
)
if cn_floater != undefined then CloseRolloutFloater cn_floater
cn_floater = newRolloutFloater "ColorAlphaClear" 200 100
addRollout cn_rollout cn_floater
使用方法简述一下:
放代码在3dmax安装路径 如:D:\Program Files\Autodesk\3ds Max 2014\scripts 下
3dmax种选择 maxscript/运行脚本 选择此脚本