Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Py ScaleIt does not work

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 337 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post