local maxSubID = amax arrayNumSubs it is the count of the array with highest number of items.
for maxSubCounter = 1 to maxSubID do
(
tmpMat = multimaterial numsubs:mainMatIDs
for subCounter = 1 to mainMatIDs do
(
if (rootMat[subCounter] != undefined) then
(
tmpMat[subCounter] = rootMat[subCounter][maxSubCounter]
)else
(
tmpMat[subCounter] = undefined
)
)
append materialsToApply tmpMat
)
您应该考虑这样做(请记住这是伪代码):
我就是这样做的,它的maxscript代码可以分析多个材质,可以有其他多个材质,并从每个ID创建新的材质。也许我在第一个问题中有点不清楚抱歉。你知道吗
相关问题 更多 >
编程相关推荐