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