Setting doodle options

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()

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.


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

Ok, thanks.

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.