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
    • Recent
    • Tags
    • Users
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    LoadDocument ignores Tags

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 993 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 24/02/2011 at 07:57, xxxxxxxx wrote:

      I can't get documents.LoadDocument to include the tags, i.e.

      d = documents.LoadDocument('t.c4d', SCENEFILTER_OBJECTS | SCENEFILTER_MATERIALS)
      assert len(d.getObjects()[0].GetTags()) == 0
      

      However, documents loaded via LoadFile include the object's tags, but are rendered (I don't want that, just need some tags in the background). Is this a bug or am I missing something?

      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 24/02/2011 at 18:32, xxxxxxxx wrote:

        Hi ibbgdv,

        If you pass SCENEFILTER_OBJECTS to LoadDocument, all tags will be loaded and are accessible. If you want to remove all tags from the objects, you can browse through the hierarchy and remove or disable them manually.

        Cheers, Sebastian

        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 25/02/2011 at 02:29, xxxxxxxx wrote:

          You're totally right - my code worked all along, but the first object was tag-less. Also, the material associations of texture tags are not kept when copying cross-document. However, a simple search in the list of all materials and a short reassociation is sufficient to fix this.

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