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
    1. Maxon Developers Forum
    2. visualride
    3. Topics
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by visualride

    • V

      Check if a texture is missing

      Cinema 4D SDK
      • python 2024 macos • • visualride
      2
      0
      Votes
      2
      Posts
      568
      Views

      ferdinandF

      Hello @visualride,

      Thank you for reaching out to us. I would recommend having a look at c4d.documents.GetAllAssetsNew .

      Helpful might also be the thread Get all Textures for a Material. It is one of the multiple threads where I showcased the usage of GetAllAssetsNew (search for GetAllAssetsNew and my user name to find the other threads). In this thread you can see here how to read the exists field in asset data to know if Cinema 4D can find that asset. But asset handling can get complex when node materials are involved as shown here (also a good place to better understand the data associated with MSG_GETALLASSETS). The thread shows also a simpler approach using BaseDocument.GetAllTextures. You can then just check with os.exists if the paths do exist. You might have to deal with relative paths here, depending on the document.

      Cheers,
      Ferdinand

    • V

      How to change bitmap in layered shader?

      Cinema 4D SDK
      • python r19 • • visualride
      3
      0
      Votes
      3
      Posts
      1.0k
      Views

      V

      Perfect! Thank you so much!

    • V

      How to close a dialog box by event

      Cinema 4D SDK
      • python • • visualride
      3
      0
      Votes
      3
      Posts
      578
      Views

      V

      That should work. Thanks for the clarification and pointer to the example!

    • V

      How to cancel FileLoad error message.

      Cinema 4D SDK
      • • • visualride
      3
      0
      Votes
      3
      Posts
      721
      Views

      V

      Thanks for the reply! I'll try that, though I thought that SCENEFILTER_IGNOREXREFS would keep xrefs from being loaded, and since my plugin edits the xref path/name, this would not work. But then again, perhaps I assumed wrong. I appreciate the help! By the way, the idea of classification by tags appears to be a good way to escape the messy folding out tree of classification system that we are all used to. I'll use it next time.