THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/12/2006 at 17:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
hello everybody
i got stuck in a render problem with coffee. hopefully someone can help me. i have no idea anymore...
i am accessing the current frame of my scene to change the scale of my object. switching through timeline with mouse works fine (means cube size changes due to current chosen frame) but if i render its just rendering the current frame (which is somehow logic) means nothing more then the same frame again and again... if i add keyframes for each frame it works but i really need it to render automatically.
simple code added to a cube named "Cube" as coffee tag for you to know what i mean
main(doc,op){
var obj = GetActiveDocument()->FindObject("Cube");
var t = doc->GetTime();
var sec = t->GetSecond();
var frame = t->GetFrame(doc->GetFps());
obj#ID_BASEOBJECT_SCALE:VECTOR_X = frame;
obj#ID_BASEOBJECT_SCALE:VECTOR_Y = frame;
obj#ID_BASEOBJECT_SCALE:VECTOR_Z = frame;
}
alternatives how to get this done are welcome, i know its possible to access the current frame as well as to render it with xpresso but i need to do it with coffee since
i need to be flexible and script everything.
thank you in advance.
sebastian