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

c4d.modules.bodypaint.PaintLayerBmp – a paint bitmap class

The abstract base class of all paint classes. Can be a texture, material, layer or mask.

class c4d.modules.bodypaint.PaintLayerBmp

SuperClass

PaintLayer

Methods

PaintLayerBmp.ImportFromBaseBitmap(bmp, usealpha)

Fill the layer bitmap with an imported bitmap.

Parameters:
  • bm (BaseBitmap) – The bitmap to import.
  • usealpha (bool) – If True the alpha channel of the bitmap is used, otherwise False.
Return type:

bool

Returns:

True if successful, otherwise False.

PaintLayerBmp.ImportFromBaseBitmapAlpha(bmp, channel)

Fill the layer bitmap with an imported bitmap.

Parameters:
  • bm (BaseBitmap) – The bitmap to import.
  • usealpha (bool) – The separate alpha channel bitmap to import.
Return type:

bool

Returns:

True if successful, otherwise False.

PaintLayerBmp.GetBoundingBox()

Get the bounding box of the bitmap layer:

d = layer_bmp.GetBoundingBox()
d["x1"], d["y1"], d["y1"], d["y2"]
Return type:dict
Returns:The coordinates

Table Of Contents

This Page