THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/10/2010 at 08:17, xxxxxxxx wrote:
Cinema 4D Version:
sorry If this is a stupid question, but I am a newbie
trying to scale a rendered picture before showing it.
This is the code:
rdd = doc.GetActiveRenderData().GetData()
bmp1 = bitmaps.BaseBitmap()
bmp1.Init(x=X_new, y=Y_new, depth=32)
documents.RenderDocument(doc, rdd, bmp1, c4d.RENDERFLAGS_EXTERNAL)
bmp2 = bitmaps.BaseBitmap()
bmp2.Init(x=X_org, y=Y_org, depth=32)
bmp1.ScaleIt(bmp2, 256, True, inprop)
get this error:
AttributeError: 'c4d.bitmaps.BaseBitmap' object has no attribute 'ScaleIt'
the SDK sais:
BaseBitmap.ScaleIt(dst, intens, sample, inprop)¶
Scales the bitmap to fit in the destination bitmap and copies it there. The destination needs to be initialized with the destination size before calling this function.
what did I wrong ;.(
On 21/10/2010 at 08:18, xxxxxxxx wrote:
and of corse:
On 21/10/2010 at 08:47, xxxxxxxx wrote:
On 21/10/2010 at 09:18, xxxxxxxx wrote: