On 17/01/2016 at 13:12, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;
---------
Hi C4D community,
With this code I can take geometry source object of geometry instance:
if (obj->GetType() == Oinstance)
{
printf("\n %4d %d %5d %6d %7d %7d", obj->GetType(), obj->GetBit(BIT_CONTROLOBJECT), 0, 0, dg, dm);
printf(" %s", obj->GetName().GetCStringCopy());
BaseContainer *cnt = obj->GetDataInstance();
if (cnt)
{
BaseObject * source_object = cnt->GetObjectLink(INSTANCEOBJECT_LINK, doc);
}
How to get the source object for Array? I create Array and put some object inside Array and tune the number of several object repetitions. I don't want to create the copies of geometry for the same object several times, but would like to link the source geometry with a few instances and matrices.
Thanks!