THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/05/2009 at 13:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r11
Platform:
Language(s) : C++ ;
---------
hey there,
is it possible to check within one object plugin if it is cloned or not? I have one plugin which creates clones of a child object. now I have another objectplugin which can be used as a child of the first one, too. and i'd like to change the random seed for each of the cloned objects..
this is how i am currently trying it (change the seed of the child from the parent object) and somwhow the seed is changed, but it seems the seed is the same for each clone, no matter that I pass different seeds (seed+i), where seed is the seed of the current object and i is the iterator
> `
\> bc = clone->GetDataInstance();
\> bc->SetLong(SEED,bc->GetLong(SEED) + i + seed);
\>
`
any help appreciated..