add_spatial_to_asset#

nominal.experimental.spatial.add_spatial_to_asset(asset: Asset, data_scope_name: str, spatial: Spatial | str) → None#

Add a spatial to an asset under a data scope name.

Assets map “data_scope_name” (the name within the asset for the data) to a spatial (or a spatial rid). The same kind of spatial should use the same data scope name across assets, since checklists and templates reference data by scope name.

Parameters:
  • asset – Asset to add the spatial to.

  • data_scope_name – Name for the data within the asset.

  • spatial – Spatial, or spatial rid, to add.