メモ、BlenderPythonスクリプトで参考になるオブジェクトや頂点の選択ツリー選択スクリプトリンクメモ

選択、アクティブ、ツリー選択などを記載した記事ブログのリンクメモ

一部抜粋あり


参考

・Blender 2.9, Python, 座標で複数メッシュ選択

https://qiita.com/naohiko7/items/e0a02cc024e223a95b41


select_set(True or False)で選択非選択になるようだ

  1. 「(抜粋)

    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 という文字列が含まれている場合次のようになります。

  1. (抜粋)

    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()

  2.  

・オブジェクトを選択したり複製したりする

https://zenn.dev/kurogitsune/scraps/b1d015a07fbbc6


・[Blender][スクリプト]選択中のツリー内に含まれる全てのオブジェクトを選択

https://note.com/e_kushi/n/ndf98ddbcdf11


以上

株式ランキング
株式ランキング にほんブログ村 株ブログ 株 デイトレードへ
にほんブログ村 にほんブログ村 デザインブログ 3DCGへ
にほんブログ村

このブログの人気の投稿

国税庁確定申告でエラーになったところ株式譲渡が赤字の場合には、配当を申告不要とすることはできません

pythonコード、株探のチャート部分をキャプチャ、CSV読み込み