c4d.plugins.BitmapSaverData
¶
A data class for creating bitmap savers. Use
RegisterBitmapSaverPlugin()
to register the plugin.
Note
See Py-Xample plugin example.
c4d.plugins.
BitmapSaverData
¶
c4d.plugins.BaseData
BitmapSaverData.
Edit
(
self
,
data
)
¶
Override - Open the settings dialog for this import/export filter.
| Parameters: | data ( c4d.BaseContainer ) – The settings for your plugin. |
|---|---|
| Return type: | bool |
| Returns: | True if the dialog opened successfully. |
BitmapSaverData.
Save
(
self
,
fn
,
bmp
,
data
,
savebits
)
¶
Warning
Never call any GUI commands in this method. Use the return value to inform the user about the state of the rendering.
Override - Save the bitmap to a file.
| Parameters: |
|
||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: |
int |
||||||||||||||||||||||
| Returns: |
The return values:
|
BitmapSaverData.
GetMaxAlphas
(
self
,
data
)
¶
Get the maximum number of alpha channels this format supports with the current settings.
| Parameters: | data ( c4d.BaseContainer ) – The settings for your plugin. These settings are stored with the general preferences. |
|---|---|
| Return type: | int |
| Returns: | The number of alpha channels. |
BitmapSaverData.
GetMaxResolution
(
self
,
layers
)
¶
Overload this to return the maximum resolution of the image format.
| Parameters: | layers ( bool ) – True if layers are to be saved, otherwise False . |
|---|---|
| Return type: | int |
| Returns: | The maximum resolution supported by the image format. |