MAXScript
Articles
【MAXScript】WPFをMAXScriptで使ってみる
Codes
for i in selection do (
i.rotation.controller[1].value = 0;
i.rotation.controller[2].value = 0;
i.rotation.controller[3].value = 0;
)
//boneの長さリセット
for b in selection where isKindOf b BoneObj and b.children.count > 0 do (
b.length = distance b b.children[1]
)
for b in selection where isKindOf b BoneObj and b.children.count > 0 do(
b.length = length (b.pos - b.children[1].pos)
)
//skinのInfluenceの一括設定
for i = 1 to 40 do(
skinOps.setOuterRadius $.modifiers[#Skin] i 1 5
skinOps.setOuterRadius $.modifiers[#Skin] i 2 5
)
//UVをFace単位で重ねていく
for i = 1 to 560 do (
$.modifiers[#unwrap_uvw].unwrap6.selectFacesByNode #{i} $
$.modifiers[#unwrap_uvw].packNoParams()
)