Dear Developers,
I want to draw some Maxon ID icons into my treeview list. Very similar tor the missing texture list inside c4d
I dabled with these two functions but can't get the to work
get it to work prior to R25 would be a bonus
Thanks in advance.
# here i can't figure out what to put into mode= maxon.IMAGEINTERPOLATIONMODE
geUserArea.DrawImageRef(1018641, wx=0, wy=0, ww=16, wh=16, opacity=0.5, mode= maxon.IMAGEINTERPOLATIONMODE)
# how do i injest a maxon icon into the basebitmap ?
geUserArea.DrawBitmap(c4d.basebitmap, wx=0, wy=0, ww=16, wh=16, x=0, y=0, w=16, h=16, mode=c4d.BMP_NORMAL)
just for context here my COL method from the treelist example:
if col == ID_INSCENE:
#icon 13957 X
#icon 1018640 OK Checkmark
#icon 1018641 X Not ok red
self.rootobj = getallrootnull_name()
name = ""
#name = self.drawicon()
if str(obj) in self.rootobj:
name = "found"
#name = obj.getfilepath()
geUserArea = drawinfo["frame"]
w = geUserArea.DrawGetTextWidth(name)
h = geUserArea.DrawGetFontHeight()
xpos = drawinfo["xpos"]
ypos = drawinfo["ypos"] + drawinfo["height"]
#drawinfo["frame"].DrawText(name, xpos, ypos - int(h * 1.1) )
drawinfo["frame"].DrawImageRef(1018641, wx=0, wy=0, ww=16, wh=16, opacity=0.5, mode=0)
kind regards
mogh