THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/09/2007 at 14:58, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hello to everybody.
I'm searching for a solution... a simple thing for you but not for me... by the way... I run an animation in C4D and I would like to store data produced by the COFFEE_Script attached (data visible in the c4Dconsole).
I would like to store them in a unique list and save this "data_list" as a file ascii in a specifiable position in HardDisk.
Pratically i need to play animation and store all the running data visible by "println(MatriceTotale);" to an unique ascii data list"
How can I do?
The script:
Create a cube in c4d... add this coffee script... animate the cube rotation... look at c4d console... i need to store these data...
main(doc,op)
{
var obj = doc->FindObject("Cube");
var matrix = obj->GetMg();
var globalRot = matrix->GetHPB();
var stringa = stradd("x ",tostring(globalRot)," items.");
// Rotazione HP
var posizione = 3;
var lunghezza = 8;
// Rotazione HB
var posizione1 = 12;
var lunghezza1 = 8;
var MatriceTotale = stradd("H", strmid(stringa,posizione,lunghezza), " P",strmid(stringa,posizione1,lunghezza1));
println(MatriceTotale);
}
Thanks in advance