On 12/03/2018 at 08:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Mac ;
Language(s) : C++ ;
---------
Greetings to all!
What is the recommended way to clone an input object multiple times inside GetVirtualObjects()?
Should GetHierarchyClone() be used each and every time? Or is it better to use GetHierarchyClone() once, and then call GetClone() on the GHC clone for each clone you need after that?
Also, I've noticed the SDK documents mention that generators with variable object output need to declare themselves as OBJECT_UNIQUEENUMERATION when registering and use SetUniqueIP() on the output objects. The example in the SDK docs simply shows some code applying a sequential IP to each clone returned from GetHierarchyClone(). Do these numbers need to change each time you rebuild the virtual object hierarchy? Or is it sufficient to simply count the number of clones generated, and assign the index number of each clone via SetUniqueIP()?
Thanks!
-CMPX