谢凡社区_C4D&Ae设计交流社区

 找回密码
 立即注册
查看: 943|回复: 0

C4D脚本自动添加反射层材质脚本代码

[复制链接]

351

主题

351

帖子

11万

金币

管理员

Rank: 9Rank: 9Rank: 9

积分
231762
发表于 2022-5-6 12:04:54 | 显示全部楼层 |阅读模式
1.jpg

C4D脚本开发 自动添加反射层代码

  1. import c4d
  2. #Welcome to the world of Python
  3. #创建材质
  4. mat = c4d.BaseMaterial(c4d.Mmaterial)
  5. mat.SetName('test')
  6. doc.InsertMaterial(mat)
  7. reflection = mat.AddReflectionLayer()
  8. data_id = reflection.GetDataID()
  9. mat[data_id+c4d.REFLECTION_LAYER_MAIN_DISTRIBUTION] = 3
  10. def main():
  11.    
  12.     pass  #put in your code here
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

南通谢凡软件科技有限公司

谢凡社区_C4D&Ae设计交流社区 ( 苏ICP备15030673号-2 )

GMT+8, 2023-3-26 03:28 , Processed in 0.115449 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表