#include <base_preset_asset.h>
BasePresetAssetInterface allows to implement details for preset assets.
◆ MAXON_INTERFACE()
◆ Apply()
Apply loads the asset/preset.
- Returns
- OK on success.
◆ GeneratePreview()
GeneratePreview implements the preview calculation of this preset type.
- Parameters
-
[in] | previewSize | Desired preview size. |
[in] | progressRef | Progress object to use. |
[in] | progressIndex | Progress Index to use. |
- Returns
- Image wrapped into a url on success.
◆ ConvertFromLegacyBrowser()
ConvertFromLegacyBrowser implements the conversion from the old c4d content browser.
- Parameters
-
[in] | pluginId | Old c4d plugin id. |
[in] | memBlock | Original browser data. |
[in] | settings | Original browser settings. |
[in] | name | Preset/Asset name. |
[in] | metaProperties | Additional meta properties. |
[in] | additionalMetaData | Additional meta data. |
[in] | addDependencyStruct | Asset dependencies. |
[in] | resolveAssets | Resolve asset helper struct. |
- Returns
- OK on success.
◆ Serialize()
Serialize implements the serialization of the data to disk.
- Parameters
-
[in] | outputStream | Stream to store the data. |
- Returns
- OK on success.
◆ GetPresetInternalConstDataPtr()
Reads the content of a preset asset. DataType and content will depend on the preset type and implementation. Returned typed might differ from GetPresetInternalData.
- Returns
- The preset's exposed data. Valid only as long as the loaded preset is in scope.
◆ GetPresetInternalData()
Reads the copied content of a preset asset. DataType and content will depend on the preset type and implementation.
- Returns
- The preset's exposed data (copied).