#include <asset_creation_helper.h>
Helper interface for asset creation and drag&drop. All maxon API based asset creation code should be here. Any asset creation with C4D legacy API ties should be in AssetCreationInterface.
Public Types | |
| using | DefaultsPresetSubType = Array< Id > | 
Static Public Member Functions | |
| static MAXON_METHOD Result< Bool > | GetDefaultSettings (const AssetDescription &asset, DefaultsPresetSubType &outSubType, DataDictionary &outDefaultValues) | 
| static MAXON_METHOD Result< Id > | JoinDefaultsPresetSubType (const DefaultsPresetSubType &ids) | 
| static MAXON_METHOD Result< Id > | JoinDefaultsPresetSubType (const Block< const DefaultsPresetSubType::ValueType > &ids) | 
| static MAXON_METHOD Result< Id > | GetJoinedDefaultsPresetSubType (const BasePresetAssetType &assetType, const Block< const DefaultsPresetSubType::ValueType > &ids) | 
| static MAXON_METHOD Result< Id > | GetNodeTemplateIdFromDefaultsPreset (const AssetDescription &asset) | 
Private Member Functions | |
| MAXON_INTERFACE_NONVIRTUAL (AssetCreationHelper, MAXON_REFERENCE_STATIC, "net.maxon.assets.assetcreationhelper") | |
| using DefaultsPresetSubType = Array<Id> | 
List of identifiers that define a defaults preset type (will become the asset's ASSETMETADATA::SubType).
      
  | 
  private | 
      
  | 
  static | 
GetDefaultSettings loads the settings for all maxon API defaults asset types. All XnodeEmulation and capsule type objects are supported here.
| [in] | asset | Defaults preset asset to load. | 
| [out] | outSubType | Identifier of the defaults preset asset type. | 
| [out] | outDefaultValues | Setting dictionary. One entry for each attribute to receive a default value. Key: AMEmulationDefaultsKey (i.e. ~ PathBlock), Value: Data (contains DESCRIPTION::DATA::BASE::DEFAULTVALUE). | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
Merges all identifiers in a single formatted Id. Format will be C4DSUBTYPEPREFIX + ("_" + assetTypePrefix) + ("_" + ids[0])...
| [in] | ids | The identifiers to merge. | 
      
  | 
  static | 
Finds the NodeTemplate asset id that was used to create the AssetTypes::NodeDefaultsPreset #asset.
| [in] | asset | An asset of type AssetTypes::NodeDefaultsPreset. |