Message 1 of 4
How to get reference file when it is not correctly loaded?

Not applicable
07-08-2011
03:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a maya scene made in windows and opened in linux, obviously it can't find it's reference as it uses absolute path. In order to correct it, firstly, I need to know the original file path such as 'Z:\model\model.mb', so that I can look for model.mb and get its path in linux. I use commands below:
But it seems this line only works when reference is successfully reached, if maya can not find the reference file, it returns nothing.
string $allrefs[] = `file -q -r`;
But it seems this line only works when reference is successfully reached, if maya can not find the reference file, it returns nothing.