LoginSignup
1
1

More than 3 years have passed since last update.

Blender python でシーン編集するメモ(W.I.P.)

Posted at

対象

  • Blender 2.82a or later

API としては Maya mel が python になった感じが強いでしょうか.

パラメータやアトリビュートにアクセスして, 値を取得したり変更したい

たとえばマテリアルで色を変えたいなど.

UI で右クリック -> Copy Data Path して, python console などに貼り付ければ, どのようにアクセスすればいいのかいくらかわかります.

blender-python.png

ただ, これはノードを起点としての階層なので, node_tree も取得する必要があります.

node_tree については, 以下のようにしてアクセス.

Blender のノードを Python から操作する
https://dskjal.com/blender/process-node-from-python.html

位置などを変えたい

T.B.W.

点群をプロットしたい

Blender + Pythonでポイントクラウドを可視化する
https://ksknw.hatenablog.com/entry/2019/10/29/192026

bpy.ops.mesh.primitive_uv_sphere_add(location=(x, y, z))

のような感じで sphere を作ることができる.

より効率的に行うなら, particle として表現でしょうか.

形状データへのアクセス

T.B.W.

  • 頂点座標
  • 法線
  • UV データ
  • Vertex color
  • Skin weight
  • Edge, face
1
1
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
1
1