0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Blender]非表示になってるオブジェクトの、アウトライナ上での選択状態を知る

Last updated at Posted at 2019-11-22

画像のように、非表示になってる状態だと以下のコマンドで選択状態が把握できないらしい。

bpy.context.selected_objects

キャプチャ.JPG

代わりに、一旦表示状態に切り替えてから非表示に戻すしかないっぽい

import bpy
obj1 = bpy.data.objects['Cube.003']
obj1.hide_viewport = False
s = bpy.context.selected_objects
print(s)
obj1.hide_viewport = True

うーん、・・・

Blender2.8 自分用メモ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?