[PXCDD-commit] SF.net SVN: pxcdd: [406] trunk/client/c4d/pxcdd-turntable.cof
Status: Alpha
Brought to you by:
tangentsoft
From: <ric...@us...> - 2006-07-20 04:51:52
|
Revision: 406 Author: ricknroll Date: 2006-07-19 21:51:49 -0700 (Wed, 19 Jul 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=406&view=rev Log Message: ----------- creating objects for turntable animation Modified Paths: -------------- trunk/client/c4d/pxcdd-turntable.cof Modified: trunk/client/c4d/pxcdd-turntable.cof =================================================================== --- trunk/client/c4d/pxcdd-turntable.cof 2006-07-20 04:13:11 UTC (rev 405) +++ trunk/client/c4d/pxcdd-turntable.cof 2006-07-20 04:51:49 UTC (rev 406) @@ -240,8 +240,31 @@ } */ - GetSceneBounds(doc); - + var mtx_sceneBounds = GetSceneBounds(doc); + + var grp = AllocObject(Onull); + grp->SetName("Turntable"); + grp->SetPosition(mtx_sceneBounds->GetV0()); + doc->InsertObject(grp, NULL, NULL); + + var cam = AllocObject(Ocamera); + cam->SetName("Turntable_Camera"); + doc->InsertObject(cam, grp, NULL); + + var spl = AllocObject(Osplinecircle); + var spl_bc = spl->GetContainer(); + //spl_bc->SetData(PRIM_CIRCLE_RADIUS,); + spl_bc->SetData(PRIM_PLANE, 2); + spl->SetContainer(spl_bc); + spl->SetName("Turntable_Spline"); + spl->SetPosition(mtx_sceneBounds->GetV0()); + doc->InsertObject(spl, grp, cam); + + var tgt = AllocObject(Onull); + tgt->SetName("Turntable_Target"); + tgt->SetPosition(mtx_sceneBounds->GetV0()); + doc->InsertObject(tgt, grp, spl); + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |