データアクセス

公式サイト:

Data Access | Blender Python API [Official]

BlendData

各種データブロックのコレクションを保持しているクラス

プロパティ
  • actions:アクション (Action)
  • armatures:アーマチュア (Armature)
  • brushes:ブラシ (Brush)
  • cache_files:キャッシュファイル (CacheFile)
  • cameras:カメラ (Camera)
  • collections:コレクション (Collection)
  • curves:カーブ (Curve)
  • filepath:現在開いている .blend ファイルのパス
  • fonts:フォント (VectorFont)
  • grease_pencils:グリースペンシル (GreasePencil)
  • hair_curves:ヘアーカーブ (Curves)
  • images:画像 (Image)
  • is_dirty:保存されていない編集が存在するかどうかを返す
  • is_saved:ファイルに保存されているかどうかを返す
  • lattices:ラティス (Lattice)
  • libraries:ライブラリ (Library)
  • lightprobes:ライトプローブ (LightProbe)
  • lights:照明 (Lights)
  • linestyles:ラインスタイル (FreestyleLineStyle)
  • masks:マスク (Mask)
  • materials:マテリアル (Material)
  • meshes:メッシュ (Mesh)
  • metaballs:メタボール (MetaBall)
  • movieclips:動画クリップ (MovieClip)
  • node_groups:ノードグループ (NodeTree)
  • objects:オブジェクト (Object)
  • paint_curves:ペイントカーブ (PaintCurve)
  • palettes:パレット (Palette)
  • particles:パーティクル (ParticleSettings)
  • pointclouds:ポイントクラウド (PointCloud)
  • scenes:シーン (Scene)
  • screens:スクリーン (Screen)
  • shape_keys:シェイプキー (Key)
  • sounds:サウンド (Sound)
  • speakers:スピーカー (Speaker)
  • texts:テキスト (Text)
  • textures:テクスチャ (Texture)
  • use_autopack:自動パックが有効かどうかを返す
  • version:.blend ファイルを保存した Blender のバージョン
  • volumes:ボリューム (Volume)
  • window_managers:ウィンドウマネージャ (WindowMnager)
  • workspaces:ワークスペース (WorkSpace)
  • worlds:ワールド (World)
メソッド
  • batch_remove
  • orphans_purge
  • temp_data
  • user_map

参考:

BlendData | Blender Python API [Official]

シェイプキー

Shape Keys
  • bpy.data.shape_keys
Key Action
  • bpy.data.shape_keys['Key'].animation_data.action: アクティブアクション
  • bpy.data.shape_keys['Key'].animation_data.nla_tracks: NLA トラック

ドキュメント:

bpy.types.BlendData.shape_keys | Blender Python API [Official]

bpy.types.AnimData.nla_tracks | Blender Python API [Official]

参考:

シェイプキーを調べる | Hajime Saito

記事をシェアする:
タグ:

コメントを残す

メールアドレスが公開されることはありません。 ※ が付いている欄は必須項目です

Protected by reCAPTCHA