[python] how to find all unloaded (unchecked) referenced files in maya ?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
Old 1 Week Ago   #1
[python] how to find all unloaded (unchecked) referenced files in maya ?

Hi!
Did someone know why this little script isn't print all the unloaded referenced files founded in my .ma file?
i've got somes nested ones who are unchecked in the referenced editor,
and even if it print them in : 'print eachnode',
it doesn't tell me that they're unloaded...?
thanks a lot for any help

references=[]
for ref_node in cmds.ls(type='reference'):
* * references.append(ref_node)
for eachnode in references:
* * print eachnode
* * unLoaded_ref_files = cmds.referenceQuery(eachnode, filename=True, isLoaded=False)
print unLoaded_ref_files *
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:16 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.