assets.generate_asset_api

generate_asset_api(libraries, output_path, *, names=None)

Generate typed asset classes for libraries into output_path.

Parameters

Name Type Description Default
libraries AssetLibrary | Sequence[AssetLibrary] One or more :class:~nodebpy.builder.AssetLibrary instances (:class:~nodebpy.builder.BundledLibrary for Blender’s bundled assets, :class:~nodebpy.builder.PackageLibrary for a .blend shipped inside your own package). required
output_path str | Path The .py file to write. required
names set[str] | None Restrict generation to these asset (node-group) names; defaults to all. None
Returns required