Py ScaleIt does not work



  • 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:

    User Information:
    Cinema 4D Version:    
    Platform:      
    Language(s) :

    ---------
    Hello There,

    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)
        bitmaps.ShowBitmap(bmp2)

    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 ;.(

    Thanks,
    Jops



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 21/10/2010 at 08:18, xxxxxxxx wrote:

    and of corse:

    Cinema R12.021
    Win7 64Bit
    Python



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 21/10/2010 at 08:47, xxxxxxxx wrote:

    Hi,

    Try 'Scale()'

    Greetings,
    Yann.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 21/10/2010 at 09:18, xxxxxxxx wrote:

    Great Thanks!!

    Jops


Log in to reply