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

    Setting doodle options

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 394 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

      On 14/10/2013 at 02:27, xxxxxxxx wrote:

      I want to set the Load Bitmap option of a Doodle Object.
      I can do that by using a CallButton, but then the user has to select a bitmap.
      I want to do it automatically, so set the bitmap using python.

      Looking at the Doodle Object, it seems a hidden Tag is connected to the object, storing all the information(?).

      <c4d.BaseTag object called 'Doodle Image/Doodle Image' with ID 1022211 ...>

      So it would seem to me that the bitmap information is also stored somewhere in the tag.
      But where?
      Below script gave me some information.
      I searched H and RES files to get more information, but so far I do not get the bitmap information.

      Any thoughts?

          doodleobj = doc.SearchObject("Doodle Object")
          bc = doodleobj.GetDataInstance()
        
          link = bc.GetLink(1002)
          print link
          if (link) : 
              print link
              print "name:", link[c4d.ID_BASELIST_NAME]
              print "link:", link[c4d.DOODLEOBJECT_IMAGE]
              print link.GetType()
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 14/10/2013 at 22:36, xxxxxxxx wrote:

        This is unfortunately not possible. The bitmap is stored in an internal
        member of the tag. Bitmaps can not be stored in containers.

        Best,
        -Niklas

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

          On 15/10/2013 at 03:04, xxxxxxxx wrote:

          Ok, thanks.

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

            On 24/10/2013 at 01:38, xxxxxxxx wrote:

            Well, in theory, you could implement a CustomDataType that holds a Basebitmap. That way, you could put it into a BaseContainer. But I'd say: too much work for too little benefit.

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