as the R21 Asset Inspector is buggy and not working correcty,
I'm trying to check myself for a reliable missing texture info.
I thought i could simply traverse the materials / shader tree
and check all XBitmaps with shader.GetBitmap()
thinking that a return value of None would mean, that texture is missing.
but somehow this doesnt seem to work,
It seems I also get None for existing textures....
Is it possible to check if a shaders texture is accessible for c4d?
i tried something like this (for each bitmap shader) :
irs = c4d.modules.render.InitRenderStruct() shader.InitRender(irs) tex_ok = True if shader.GetBitmap() else False shader.FreeRender()
actually the return value of InitRender() should be enough already,
but I get -101 c4d.INITRENDERRESULT_ASSETMISSING also for loaded textures...