On 12/10/2013 at 12:40, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r14
Platform:
Language(s) : C++ ;
---------
hi,
to retrieve the size of a group of objects i had the idea to use the following code.
however, it seems to not work. i searched the forum, but found only things i dont understand.
Vector Handrail::getSize(BaseObject* o)
{
Vector size = Vector(0);
BaseObject* temp = BaseObject::Alloc(Oconnector);
if (temp)
{
o->InsertUnder(temp);
size = temp->GetRad();
GePrint("Size:"+RealToString(size.y));
}
return size;
}
any help would be great :) i am just looking for an easy way to get the dimension of a user defined object (and this object could be anything)
thanks in advance,
ello