THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/06/2008 at 16:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hi,
i worked around, and had read, that i can't add keyframes normal in COFFEE. SO i try to make this with the help of a COFFEE Expression Tag.
> \> var coffeetag = AllocTag(Tcoffeeexpression); \> cam->InsertTag(coffeetag); \>
this adds a coffetag to my camera.
Now i want to know how i can adding something into this Tag.
e.g.
> \> var cam = new(array,4,2); \> \> cam[0][0] = vector(100.0,100.0,100.0); \> cam[0][1] = vector(90.0,0.0,90.0); \> \> cam[1][0] = vector(-100.0,-100.0,-100.0); \> cam[1][1] = vector(-90.0,0.0,-90.0); \> \> cam[2][0] = vector(100.0,100.0,100.0); \> cam[2][1] = vector(90.0,0.0,90.0); \> \> cam[3][0] = vector(-100.0,-100.0,-100.0); \> cam[3][1] = vector(-90.0,0.0,-90.0); \> \> var fps = 30; \> var current_frame = doc->GetTime()->GetFrame(fps); \> op->SetPosition(cam[int(current_frame)][0]); \> op->SetRotation(cam[int(current_frame)][0]); \>
This actualized automatically for every frame a new position.
Now i want to know how i can add such in my COFFEE TAG