Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active January 13, 2016 06:58
Show Gist options
  • Save kjunichi/1977c491a8933b0eb4d1 to your computer and use it in GitHub Desktop.
Save kjunichi/1977c491a8933b0eb4d1 to your computer and use it in GitHub Desktop.
2016/01/13

decimate script

  • オブジェクトを選択するを繰り返す
for obj in bpy.data.objects:
  print(obj.name)
  • decimateする
mod = bpy.data.objects['Cube'].modifiers.new(name='decimate', type='DECIMATE')
mod.ratio = 0.5
mod.realtime = True

必要そうな事項

  • オブジェクトモードへの切り替え(decimateはエディットモードだと適用できないっぽい)

Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment