[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
  07 July 2017
[python] how to find all unloaded (unchecked) referenced files in maya ?

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

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
Society of Digital Artists

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

All times are GMT. The time now is 03:40 PM.

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