max脚本-批量设置骨骼封套
rollout k帧动画工具 "批量设置封套2022.1.26" width:162 height:100
(
button GetID "获取BoneID" pos: width:80 height:30
spinner StartEnvelope "起始骨骼ID" pos: width:148 height:16 range: type:#integer
spinner EndEnvelopeSize1 "结束骨骼ID" pos: width:148 height:16 range: type:#integer
------------
spinner OuterEnvelopeSize "外部封套大小" pos: width:148 height:16 range: type:#float
spinner InnerEnvelopeSize "内部封套大小" pos: width:148 height:16 range: type:#float
-------------------
button setok "设置" pos: width:100 height:30
on GetID pressed do
(
try(
boneNames = skinOps.GetBoneName skinMod i 0
Print boneNames
MessageBox ID
)--try
catch()
)--btn1
on setok pressed do
(
try(
for i=StartEnvelope.value to EndEnvelopeSize1.value do(
skinOps.setOuterRadius $.modifiers[#Skin] i 2 OuterEnvelopeSize.value
skinOps.SelectCrossSection $.modifiers[#Skin] 1 1
$.modifiers[#Skin].cross_radius = InnerEnvelopeSize.value
skinOps.setOuterRadius $.modifiers[#Skin] i 1 OuterEnvelopeSize.value
skinOps.SelectCrossSection $.modifiers[#Skin] 1 0
$.modifiers[#Skin].cross_radius = InnerEnvelopeSize.value
skinOps.setInnerRadius $.modifiers[#Skin] i 1 InnerEnvelopeSize.value
skinOps.SelectCrossSection $.modifiers[#Skin] 2 0
$.modifiers[#Skin].cross_radius = InnerEnvelopeSize.value
skinOps.setInnerRadius $.modifiers[#Skin] i 2 InnerEnvelopeSize.value
)
)--try
catch()
)--btn1
)
-------------------------------------------------------------
globalrollout = newrolloutfloater "批量设置封套" 200 200
addRollout k帧动画工具 globalrollout
有教程吗,大佬 TAN2271994 发表于 2022-3-9 11:00
这个可以支持
这个好用吗 这个没法用吧 这个可以支持 {:6_209:}{:6_209:} 感谢分享
页:
[1]