Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Can AliasTrans instances be reused?

    SDK Help
    0
    3
    597
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

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

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

          -CMPX

          1 Reply Last reply Reply Quote 0
          • First post
            Last post