#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. @MAXON_ANNOTATION{methodId="GeneratePreview@30e43d469de278b3"->"GeneratePreview@d62409d191fcc693"}
◆ 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.