所有分类
  • 所有分类
  • 模型
  • 视频教程
  • 材质
  • 软件
  • 插件
  • 预设
  • 贴图
  • 基础教程
插件脚本
软件性质: 脚本
适用版本: C4D R15 – C4D R16 – C4D R17 – C4D R18
软件版本: Version: unknown
系统平台: Win?MAC
软件语言: 英文

C4D多边形分离脚本 DupePolysInPlace

DupePolysInPlace
Creates a copy of the selected polygons within the same object.
Either unzip the .py file into your scripts folder, or copy-paste the code below inside C4D’s Script Manager

  1. import c4d
  2. from c4d import gui
  3. def main():
  4. ? ? #——————————————————————-
  5. ? ? # change this to another tool you want to macro
  6. ? ? toolID = c4d.ID_MODELING_CLONE_TOOL
  7. ? ? #——————————————————————-
  8. ? ? previousTool = doc.GetAction()
  9. ? ? c4d.CallCommand(toolID)
  10. ? ? tool = c4d.plugins.FindPlugin(doc.GetAction(), c4d.PLUGINTYPE_TOOL)
  11. ? ? #——————————————————————-
  12. ? ? # attributes you want to setup before applying tool
  13. ? ? tool[c4d.MDATA_CLONE_CNT]? ?? ?? ?= 1
  14. ? ? tool[c4d.MDATA_CLONE_OFFSET]? ?? ?= 0.0
  15. ? ? tool[c4d.MDATA_CLONE_HOLES]? ?? ? = 0.0
  16. ? ? tool[c4d.MDATA_CLONE_SCALE]? ?? ? = 1.0
  17. ? ? tool[c4d.MDATA_CLONE_ROTATION]? ? = 0.0
  18. ? ? tool[c4d.MDATA_CLONE_LOCALMOVE]? ?= c4d.Vector(0.0, 0.0, 0.0)
  19. ? ? tool[c4d.MDATA_CLONE_LOCALSCALE]??= c4d.Vector(1.0, 1.0, 1.0)
  20. ? ? tool[c4d.MDATA_CLONE_LOCALROTATE] = c4d.Vector(0.0, 0.0, 0.0)
  21. ? ? tool[c4d.MDATA_CLONE_KEEPFORM]? ? = True
  22. ? ? #——————————————————————-
  23. ? ? c4d.CallButton(tool, c4d.MDATA_APPLY)
  24. ? ? doc.SetAction(previousTool)
  25. ? ? c4d.EventAdd()
  26. if __name__==’__main__’:
  27. ? ? main()

复制代码

资源下载
下载地址1立即下载(解压密码: c4dchina.com)复制
下载地址2立即下载(提取码: kees)复制
下单如有疑问咨询客服QQ:794320719
0

评论0

C4D插件合集一键安装C4D粒子插件流体OC渲染材质素材包支持R19-2024
C4D插件合集一键安装C4D粒子插件流体OC渲染材质素材包支持R19-2024
8分钟前 有人购买 去瞅瞅看

站点公告

C4D插件全套插件一键安装!更方便购买此插件
显示验证码
没有账号?注册  忘记密码?