Looking for a simple splinecurve script

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 13/03/2006 at 04:40, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9.1 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
Hi dear Cinema User, I have found such things last week and perhaps somebody can say, if this code lines are useful for creating a splinecurve with coffee ! 🙂 have a good weekend, bye, frankolino 🙂
--------------------------------------------------------
main(doc,op)_<_o:_<_o:p_>_o:p>
_rve=op;
var bc;
 
if (instanceof(curve,SplinePrimitiveObject))_<_o:_<_o:p_>_curve->GetSplineObject();
_nstanceof(op,SplineObject)) return;
_o-fareast-font-family: 'MS Mincho'"> 
curve->InitLength(1);
var long=curve->GetLength();   //länge der spline_si-language: FR; mso-fareast-font-family: 'MS Mincho'">s
var inter=lenght/(nb_objets);   //berechnet die Intervalle der splines_e="mso-fareast-font-family: 'MS Mincho'"> (splines geschlossen)
bc=cur_RU style="mso-fareast-font-family: 'MS Mincho'">ve->GetContainer();
var close_="mso-fareast-font-family: 'MS Mincho'">=bc->GetData(SPLINEOBJECT_CLOSED);
_"mso-fareast-font-family: 'MS Mincho'">if (close==FALSE) inter=length/(nb_objets-1);<_<_o:_<_o:p_>_/P>
 
var object=op->GetDown();  // er_<_o:_<_o:p_>_...
if (!object) return;
var source_object=object->GetName();<_<_o:_<_o:p_>_class=MsoPlainText>var rot_s=objet->GetMg()->GetHPB();
and so on...
This code lines are for making instances, I doesn't need such a specific theme, but in this way to create a spline curve. I have written with a friend a little javascript tool for another 3d program and would like to adapt it to Cinema 4D 9.1. That's it :-), bye, best regards from Germany, Frankolino 🙂
PS: If it's to hard to handle to adapt it to coffee or C+, we forget this project 🙂