query referenced mayaBinary files

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  04 April 2006
query referenced mayaBinary files

hi eveyone,

Does anyone out there know the proper command to query all referenced mb files in a scene.

file -q -l -type "mayaBinary" 
still returns ALL referenced files.

Thanks in advance.
__________________
"The secret to creativity is knowing how to hide your sources." -- Albert Einstein
 
  04 April 2006
thats a good question, the query command doesn't work if you give it a type to query even with:

file -q -r -type "mayaBinary";

it doesn't want to do it

so here is what I did. This will do the same thing just a work around. this will only print out the maya binary files that are referenced. if you want the entire file list including the current scene, then you can change the -r flag to the -l flag

 string $fileList[];
$fileList = `file -q -r`;
for($file in $fileList){
	  string $fileExt = `match "[^\.]*$" $file`;
	 if(tolower($fileExt) == "mb"){
			print ($file + " is a maya binary \n");
	  }
} 


so do what you want inside the if statement for that maya binary

if anyone else has a better plan, i'd like to know as well

Goodl luck!
-Scott
__________________
http://www.scottenglert.com <- personal website
 
  04 April 2006
Thanks Scott,

That should work nicely. It's unfortunate however that the -type flag doesn't want to behave.
__________________
"The secret to creativity is knowing how to hide your sources." -- Albert Einstein
 
  04 April 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed 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 11:50 PM.


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