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

    module 'c4d' has no attribute 'ASSETDATA_FLAG_MISSING'

    Cinema 4D SDK
    r23 r25 python
    2
    3
    578
    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.
    • mikeudinM
      mikeudin
      last edited by

      I have a error message on R23,25.

      >>> c4d.ASSETDATA_FLAG_MISSING
      Traceback (most recent call last):
        File "console", line 1, in <module>
      AttributeError: module 'c4d' has no attribute 'ASSETDATA_FLAG_MISSING'
      

      In Python SDK there is info that this flag cames from R22 🤔🤔

      Checkout my python tutorials, plugins, scripts, xpresso presets and more
      https://mikeudin.net

      1 Reply Last reply Reply Quote 0
      • CairynC
        Cairyn
        last edited by Cairyn

        It's apparently ASSETDATA_FLAG_NOMISSING.

        ASSETDATA_FLAG_0 0
        ASSETDATA_FLAG_CURRENTFRAMEONLY 1
        ASSETDATA_FLAG_CURRENTTAKEONLY 8
        ASSETDATA_FLAG_MULTIPLEUSE 64
        ASSETDATA_FLAG_NET 4
        ASSETDATA_FLAG_NODOCUMENT 256
        ASSETDATA_FLAG_NOMISSING 128
        ASSETDATA_FLAG_NONE 0
        ASSETDATA_FLAG_NOSUBSTANCES 32
        ASSETDATA_FLAG_TEXTURESONLY 2
        ASSETDATA_FLAG_WITHCACHES 16

        If you want to list all values pertaining to a certain group of constants, you can modify this script:

        import c4d
        
        def main():
            for attr in dir(c4d):
                if "ASSETDATA" in attr:
                    val = eval('c4d.' + attr)
                    print (attr, val)
        
        if __name__=='__main__':
            main()
        

        Learn more about Python for C4D scripting:
        https://www.patreon.com/cairyn

        mikeudinM 1 Reply Last reply Reply Quote 2
        • mikeudinM
          mikeudin @Cairyn
          last edited by

          @cairyn Thank you!

          Checkout my python tutorials, plugins, scripts, xpresso presets and more
          https://mikeudin.net

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