SOLVED module 'c4d' has no attribute 'ASSETDATA_FLAG_MISSING'

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 🤔🤔

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

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

@cairyn Thank you!