選択されているものがメッシュなら「this is mesh」とprintされる
import bpy
selectList = bpy.context.selected_objects
if selectList[0].type == "MESH":
print("this is mesh")
else:
print("this isn't mesh")
自分用メモ
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
選択されているものがメッシュなら「this is mesh」とprintされる
import bpy
selectList = bpy.context.selected_objects
if selectList[0].type == "MESH":
print("this is mesh")
else:
print("this isn't mesh")
自分用メモ
Register as a new user and use Qiita more conveniently
Go to list of users who liked