[PXCDD-commit] SF.net SVN: pxcdd: [430] trunk/client/c4d/pxcdd-turntable.cof
Status: Alpha
Brought to you by:
tangentsoft
From: <ric...@us...> - 2006-07-24 02:45:29
|
Revision: 430 Author: ricknroll Date: 2006-07-23 19:45:20 -0700 (Sun, 23 Jul 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=430&view=rev Log Message: ----------- added coffee expression tag to animate camera position along spline Modified Paths: -------------- trunk/client/c4d/pxcdd-turntable.cof Modified: trunk/client/c4d/pxcdd-turntable.cof =================================================================== --- trunk/client/c4d/pxcdd-turntable.cof 2006-07-24 01:34:52 UTC (rev 429) +++ trunk/client/c4d/pxcdd-turntable.cof 2006-07-24 02:45:20 UTC (rev 430) @@ -262,7 +262,7 @@ var spl = AllocObject(Osplinecircle); var spl_bc = spl->GetContainer(); - // spl_bc->SetData(PRIM_CIRCLE_RADIUS, scn_rad); + spl_bc->SetData(PRIM_CIRCLE_RADIUS, 2 * scn_rad); spl_bc->SetData(PRIM_PLANE, 2); spl->SetContainer(spl_bc); spl->SetName("Turntable_Spline"); @@ -285,6 +285,25 @@ ttg_bc->SetData(ALIGNTOSPLINETAG_LINK, tgt); ttg->SetContainer(ttg_bc); cam->InsertTag(ttg, NULL); + + // Expression Tag + var cof = AllocTag(Tcoffeeexpression); + var cof_bc = cof->GetContainer(); + var cof_str = stradd("main(doc, op) {","\n", + " var cam = doc->FindObject(\"Turntable_Camera\");", "\n", + " var tag = cam->GetFirstTag()\;", "\n", + " while(tag) {", "\n", + " if(strmid(tag#ID_BASELIST_NAME,0,5)==\"Align\") {", "\n", + " tag#ALIGNTOSPLINETAG_POSITION = ", + "doc->GetTime()->GetFrame(doc->GetFps()) / ", + "doc->GetMaxTime()->GetFrame(doc->GetFps());", + " }", "\n", + " tag = tag->GetNext();", "\n", + " }", "\n", + "}"); + cof_bc->SetData(1000, cof_str); + cof->SetContainer(cof_bc); + cam->InsertTag(cof, NULL); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |