Last active
May 7, 2020 07:16
-
-
Save GOROman/eb4f77b781e9393c79a03ba58b445211 to your computer and use it in GitHub Desktop.
Blender Python memo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# オブジェクト一覧 | |
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