Hi, I'm reading a book about character animation with example scenes. now for one part they use C.O.F.F.E.E. to move some body parts for animation. My C4D Version (R21) does not support C.O.F.F.E.E. and I have no clue ho to write this code im Python. Can someone give me a hint how to write the following script with Python?
var rot_old;
var rot_new;
mouseDown(doc, tag)
{
var obj=tag->GetObject();
if (obj)
{
rot_old=obj->GetAbsRot();
rot_new=0.0;
}
}
mouseDrag(doc, tag)
{
var obj=tag->GetObject();
if (obj)
{
var weg=tag#INTERACTIONTAG_XPIXELS;
rot_new=rot_old.y+pi*weg/1800.0;
obj->SetAbsRot(vector(rot_old.x, rot_new, rot_old.z));
}
}
doubleClick(doc, tag)
{
var obj=tag->GetObject();
if (obj)
{
rot_old=vector(0.0);
obj->SetAbsRot(rot_old);
}
}