メモ、BlenderPythonスクリプトで参考になるオブジェクトや頂点の選択ツリー選択スクリプトリンクメモ
選択、アクティブ、ツリー選択などを記載した記事ブログのリンクメモ
一部抜粋あり
参考
・Blender 2.9, Python, 座標で複数メッシュ選択
https://qiita.com/naohiko7/items/e0a02cc024e223a95b41
select_set(True or False)で選択非選択になるようだ
「(抜粋)
~
bpy.data.objects['Camera'].select_set(True)
~
# ==== select (obj.location.z) lowest 5*5
for obj in bpy.data.objects: #scan every object, select multiple objects with Z
loc_z = (obj.location.z)
if loc_z == z1f:
obj.select_set(True)
」
・[Blender] Pythonスクリプトで頂点グループをまとめて選択する方法
https://blog.fujiu.jp/2016/10/blender-python-how-to-select-multiple.html
「 (抜粋)頂点グループを一括選択するPythonスクリプト
スカートの頂点グループは Skirt という文字列が含まれている場合次のようになります。
「(抜粋)
obj = bpy.data.objects['オブジェクト名']
for i in range(0, len(obj.vertex_groups)):
group = obj.vertex_groups[i]
if group.name.find('Skirt') > -1:
obj.vertex_groups.active_index = group.index
bpy.ops.object.vertex_group_select()
」
」
・オブジェクトを選択したり複製したりする
https://zenn.dev/kurogitsune/scraps/b1d015a07fbbc6
・[Blender][スクリプト]選択中のツリー内に含まれる全てのオブジェクトを選択
https://note.com/e_kushi/n/ndf98ddbcdf11
以上

株式ランキング

にほんブログ村

にほんブログ村