I answered this in your other post (don’t post twice btw):
is your Maya folder structure like this?:
projectName/scenes/file.mb
projectName/sourceimages/texture.tif
If so, select Maya’s File/Set Project menu item and set the project folder to the projectName folder. Then re-open your scene and the textures will load. I made a script to do this sequence in one step. You can copy and paste this into the Script Editor/MEL tab and hit control-enter to execute it and it will set the project to the parent folder for the open scene and prompt you to reload the scene:
string $pathToScene = `file -q -sn`;
string $bufferName[];
tokenize $pathToScene "/" $bufferName;
int $pathCount = `size $bufferName`;
//split off .ma extension so it doesn't get confused by reg exp
string $revisedPathSansExt = `substitute "...$" $pathToScene ""`;//This now has no .ma at the end
tokenize $revisedPathSansExt "/" $bufferName;//replace the buffer with the stripped extension version
//strip out the file name sans .ma or .mb
string $revisedFullPath = `substitute ($bufferName[$pathCount - 1] + "$") $revisedPathSansExt ""`;
int $checker = `gmatch $bufferName[$pathCount - 2] "scenes*"`;
if ($checker == 1)//contains scenes
{
string $mainProjPath = $revisedFullPath;
string $revisedPath = `substitute "scenes/" $revisedFullPath ""`;
setProject $revisedPath;
//sysFile -makeDir ($mainProjPath + "/images");
}
else if ($checker == 0)//doesnt contain scenes so don't strip it and set root folder to project folder
{
setProject $revisedFullPath;
sysFile -makeDir ($revisedFullPath + "images");
}
string $resulert = `confirmDialog -title "Confirm" -message "Reload file with proper project path?"
-button "Yes" -button "No" -defaultButton "Yes"
-cancelButton "No" -dismissString "No"`;
if ($resulert == "Yes")
{
file -f -open $pathToScene;
}
else
{
warning ("File load cancelled but project path set.
");
}