On 19/09/2013 at 11:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ; PYTHON ;
---------
Is it possible to use GeClipMap stuff in the UserArea?
I'm not getting anything from it in C++ or Python.
C++
void MyUserArea::DrawMsg(LONG x1,LONG y1,LONG x2,LONG y2, const BaseContainer &msg)
{
AutoAlloc<GeClipMap> cm;
if(!cm) return;
cm->Init(512, 512, 32);
cm->BeginDraw();
cm->SetColor(255,0,0,100); //Red
cm->FillEllipse(0,0,100,100);
}
Python
class MyUA(gui.GeUserArea) :
cm = c4d.bitmaps.GeClipMap()
def DrawMsg(self, x1, y1, x2, y2, msg) :
self.cm.Init(512, 512, 32)
width = self.cm.GetBw()
height = self.cm.GetBh()
self.cm.BeginDraw()
self.cm.SetColor(255, 0, 0, 100) #Red
self.cm.FillEllipse(0,0,100,100)
self.cm.EndDraw()
-ScottA