THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/02/2009 at 16:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.1
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
im not good with coffee (this would be my first try at it)
i made a script that finds the objects rotation HPB and prints it.
what i want to do now is to store that data and be able to call it back later.
eg.. i want to have a button that sets the object HPB coordinates to "0,0,0".
then if i press the button again it will set the object back to its last HPB coordinates (when i pressed the button the first time)
here is the start of the code
> var obj = doc->FindObject("Cube"); \> var m = obj->GetMg(); \> var rot = obj->GetRotation(); \> obj->SetMg(m); \> obj->SetRotation(vector(0.0,0.0,0.0)); \> println("Global rot = ", rot); \>