This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com
This is an extension of the BaseBitmap class that supports higher bit depths, even floating point images, and multiple layers.
// General
// Add stuff
// Parameter
// count of elements
Allocates a multipass bitmap of size bx/by and bit depth given by mode. The first RGBA layer is also created.
| Parameters: |
|
|---|
: :rtype: MultipassBitmap :return: The new multipass bitmap.
Deletes layer from the bitmap, freeing the memory.
| Parameter: | layer (MultipassBitmap) – The layer to delete. Never access this reference afterwards. |
|---|---|
| Return type: | bool |
| Returns: | True if successful, otherwise False. |
Finds a layer in the bitmap by ID.
| Parameters: |
|
|---|---|
| Return type: | |
| Returns: | The found layer or None. |
Gets a paint bitmap.
| Return type: | PaintBitmap |
|---|
Adds a layer after insertafter with mode colormode after insertafter in the bitmap.
| Parameters: |
|
|---|
Adds an alpha layer with mode colormode after *insertafter in the bitmap.
| Parameters: |
|
||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | |||||||||||||||||||||||||||||||||
| Returns: | The added alpha layer or None |
Adds a folder after insertafter in the bitmap.
| Parameters: |
|
|---|
Uses a description ID as a key into the container, and retrieves the stored data.
| Parameter: | id (int) – Parameter ID:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | any | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns: | Depends on the description ID. Can be None. |
Uses a description ID as a key into the container, and stores the specified data.
| Parameter: | id (list of int) – Description ID. |
|---|---|
| Return type: | any |
| Returns: | Depends on the description ID. Can be None. |
Gets the layer with number num.
| Parameter: | num (int) – Layer *index, 0 <= num < MultipassBitmap.GetLayerCount(). |
|---|---|
| Return type: | MultipassBitmap |
| Returns: | The retrieved layer, or None if the operation failed. |
Gets the alpha layer with number num.
| Parameter: | num (int) – Alpha layer index, *0 <= num < MultipassBitmap.GetLayerCount(). |
|---|---|
| Return type: | MultipassBitmap |
| Returns: | The retrieved layer, or None if the operation failed. |
Gets the hidden layer with number num.
| Parameter: | num (int) – Hidden layer index, *0 <= num < MultipassBitmap.GetLayerCount(). |
|---|---|
| Return type: | MultipassBitmap |
| Returns: | The retrieved layer, or None if the operation failed. |
Retrieves the number of layers in the bitmap. This is the sum of the number of layers, folders and alphas that are direct children of this bitmap.
| Return type: | int |
|---|---|
| Returns: | Layer count. |
Retrieves the number of alpha layers in the bitmap.
| Return type: | int |
|---|---|
| Returns: | Alpha layer count. |
Retrieves the number of hidden layers in the bitmap.
| Return type: | int |
|---|---|
| Returns: | Hidden layer count. |