データアクセス
公式サイト:
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_removeorphans_purgetemp_datauser_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]
参考: