Can AliasTrans instances be reused?



  • On 07/03/2018 at 04:58, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R17 
    Platform:    Mac  ;  
    Language(s) :     C++  ;

    ---------
    Is it safe to use a single AliasTrans instance for multiple cloning operations with GetClone() or GetHierarchyClone()?

    Or are you expected to free it and create a new instance for each use?

    If it can be reused, what happens if you call GetClone() a dozen times with the same AliasTrans instance, then call Translate() afterwards? Is this preferred to calling Translate() after each call to GetClone()?

    -CMPX



  • On 08/03/2018 at 08:59, xxxxxxxx wrote:

    Hi,

    yes, you can use one AliasTrans for several copy or clone operations with just one call to Translate() in the end.
    Maybe the code snipped in the C4DAtom manual also helps.



  • On 09/03/2018 at 05:31, xxxxxxxx wrote:

    Huh, didn't know about that code snippet. Thanks for pointing that out!

    -CMPX


Log in to reply