Thanks a lot Andes for your answer,
I'd done like that, it's working now :)

unLoaded_ref_files=[]
refList = pm.ls(type='reference')
for ref in refList:
    try:
        if ref.isLoaded():
            print ref
        else:
            refUnloaded="{}".format(ref)
            print "{} IS NOT LOADED".format(ref)
            unLoaded_ref_files.append(refUnloaded)
    except:
        print "FAILED with {}".format(ref)


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/56e225f2-d46b-4820-986e-dcc7d2ac5ddd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to