gpt4 book ai didi

3dsmax - 如何以编程方式为 3ds max 中的对象分配随机颜色?

转载 作者:行者123 更新时间:2023-12-04 22:25:13 25 4
gpt4 key购买 nike

如何以编程方式为 3ds max 中的对象分配随机颜色?

最佳答案

如果您只想分配随机线颜色,这很有效。这是一些用于创建具有随机漫反射颜色的标准 Material 的代码。

for o in $* do 
(
m = standard
m.diffuse = random white black
o.material = m
)

关于3dsmax - 如何以编程方式为 3ds max 中的对象分配随机颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4024218/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com