On 29/06/2016 at 08:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
How do I find the position of a key in pixels (and its width) in CTrackData::Draw()? Or how else can I
find the necessary information in order to properly draw custom information in correct relationship
with the keys?
Bool Draw(CTrack* track, GeClipMap* map, const BaseTime& clip_left,
const BaseTime& clip_right) override
{
map->BeginDraw();
CCurve* const curve = track->GetCurve();
for (Int32 i = 0; i < curve->GetKeyCount(); ++i) {
CKey* const key = curve->GetKey(i);
// How do I find out what the X-position and width of the key is?
}
map->EndDraw();
return true;
}
Thanks in advance,
Niklas