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

    Prevent GetClone() to copy the tags attached on the object?

    Cinema 4D SDK
    r20 python
    2
    3
    667
    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.
    • B
      bentraje
      last edited by

      Hi,

      I'm trying to duplicate objects using the GetClone(c4d.COPYFLAGS_NO_HIERARCHY | c4d.COPYFLAGS_NO_BITS) line. However, when I do so, it also copies the tags attached to the object.

      Is there a way to copy only the objects and not the tags?

      Thank you for looking at the problem.

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        HI Bentraje, thanks for reaching out us.

        With regard to your request, I'd like to share few considerations:

        • tags can store relevant information for the scene (whether they are visible or invisible)
        • tags can be hidden and avoiding copy of visible ones will also prevent the hidden ones to be copied

        Because of the above considerations, cloning an object without its tags can be risky and lead to unpredictable results.

        That said you can attempt to delivery a clone without tags by using the COPYFLAGS::PRIVATE_NO_TAGS but aside from this non-officially supported approach, disclosing your final intent might be more helpful.
        Can't you consider for example to clone everything and then to remove those tags you know that to your scope are useless?

        Best, Riccardo

        1 Reply Last reply Reply Quote 2
        • B
          bentraje
          last edited by

          Thanks for the @r_gigante response.
          I'll stay away from the non-official method. Is this the reason why COPYFLAGS::PRIVATE_NO_TAGS is not included in the Python documentation of the GetClone() method?

          I'll use the clone everything then remove tags methodology instead.

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