Skip to content

Instantly share code, notes, and snippets.

@GOROman
Last active May 7, 2020 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GOROman/eb4f77b781e9393c79a03ba58b445211 to your computer and use it in GitHub Desktop.
Save GOROman/eb4f77b781e9393c79a03ba58b445211 to your computer and use it in GitHub Desktop.
Blender Python memo
# オブジェクト一覧
for i in bpy.data.objects:
print(i.name)
# スクリーン一覧
for i in bpy.data.screens:
print(i.name)
# Cube取得
if "Cube" in bpy.data.meshes:
mesh = bpy.data.meshes["Cube"]
# エッジ
for i in mesh.edges:
print(i)
# 頂点
for i in mesh.vertices:
print(i)
# ポリゴン
for i in mesh.polygons:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment