Solved an "Error: line 0: Error reading file." for a .mb file (it may help somebody)

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  09 September 2013
Solved an "Error: line 0: Error reading file." for a .mb file (it may help somebody)

Nearly screwed myself today.... maybe this can help others in the future. Did it by fluke:

Error: line 0: Error reading file for a .mb file.

Maya runs something like this when you choose a simple File>Open:

file -f -options "v=0;" -typ "mayaBinary" -o "K:/test.mb"; addRecentFile("K:/test.mb", "mayaBinary");

Just copy and paste from the script editor but delete:

-typ "mayaBinary"

so it's:

file -f -options "v=0;" -o "K:/test.mb"; addRecentFile("K:/test.mb", "mayaBinary");

-------

Alternatively the equivelant with File>Import:

file -import -type "mayaBinary" -ra true -mergeNamespacesOnClash false -rpr "test" -options "v=0;" -loadReferenceDepth "all" "K:/test.mb";

Copy and Paste it into the script editor, but delete -type "mayaBinary":
so:

file -import -ra true -mergeNamespacesOnClash false -rpr "test" -options "v=0;" -loadReferenceDepth "all" "K:/test.mb";

Hope this helps
 
  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 05:01 AM.


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