Change Object Parameters
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/05/2008 at 05:10, xxxxxxxx wrote:
Hi All,
I'm very new in the world of COFFEE. I'm working on some small plugins for cinema 4D.
Now i'm at a point where can't find a solution for my problem. I searched in the forum an in the sdk but i couldn't find an example for my problem.I create with the plugin a Lathe Nurb and a Spline. Then i put the spline into the lathe. For smoothing i add a phong tag to my lathe nurb.
My problem is, how can change the subdivison of the lathe nurb via coffee, so that it looks more roundly.
My Code:
//vObj is my created Splinelathe = AllocObject(Olathe);
vDoc->InsertObject(lathe,NULL,NULL);
lathe->SetName(cObjName);
var tag = AllocTag(Tphong);
lathe->InsertTag(tag);vDoc->InsertObject(vObj,lathe,NULL);
GeEventAdd(DOCUMENT_CHANGED);
return vObj;Thx for your help!
Greetz Stefan
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/05/2008 at 01:59, xxxxxxxx wrote:
Just set the subdivision description parameter.
lathe#LATHEOBJECT_SUB = some_integer_value;
btw. GeEventAdd() has been replaced by EventAdd()
cheers,
Matthias