Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    GetClone() question

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 610 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 30/06/2011 at 12:15, xxxxxxxx wrote:

      i was wondering.... are you able to modify object parameters on an object that has been created with getClone()? or will it mess with the original? i seem to be getting errors sometimes and not others when i try to change object data of something that was created with GetClone(), and i was just wondering if GetClone returns a completely new object based on the original object, or a copy of the original with links to it's data?

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 30/06/2011 at 13:45, xxxxxxxx wrote:

        No, that would be nonsense. Every object has it's own container.
        The reason, why you need GetClone is, when you want to copy an object multiple
        times.

        This will mess up Cinema 4d and even crash it:

        doc.InsertObject(doc.GetActiveObject())
        

        Instead, use GetClone to get a copy

        doc.InsertObject(doc.GetActiveObject().GetClone())
        

        Of course you can treat the cloned object like every other object.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 30/06/2011 at 14:40, xxxxxxxx wrote:

          When you clone an object. The original object is still active(selected) unless you de-select it with delBit(BIT_ACTIVE).
          Maybe that's what's where you're errors are coming from?

          -ScottA

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 30/06/2011 at 21:45, xxxxxxxx wrote:

            It would be interesting what errrors exactly
            you get.

            Cheers,

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 01/07/2011 at 00:49, xxxxxxxx wrote:

              yeah i ended up using the get data set data and also get type to create a duplicate of the object, but your guy's way is a lot faster it would seem. i was more wondering the proper way to use GetClone. it seems to be more of a refrence to the original base container and less of a virtual clone. you still need to create an object based upon that container. thanks!

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