THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/12/2003 at 09:34, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.206
Platform:
Language(s) : C++ ;
---------
Hi,
Im trying to make a clone of a deformed primitive spline.
The code im using is:
// obj1 is a Arc Spline (that has a bend deformer as its child)
BaseObject *object = op->GetAndCheckHierarchyClone(hh, obj1, HCLONE_ASSPLINE, &dirty, 0, false);
if(!dirty) return object;
SplineObject *spline = static_cast<SplineObject*>(object)->GetRealSpline();
if(!spline)
{
GePrint("Spline is null");
return NULL;
}
The result of that returns "Spline is null in the console when I have a deformer as a child of the spline. If i remove or de-activate the deformer, the spline variable is valid and my plugin works like it should.
What am I doing wrong?
Thanks