Hi,
i am going to replace all my low res asset with high res asset(same name and NS).This is my script,but here i am unable to load from new path its giving file name along with reference nodes.
anybody knows how to solve this ?
global proc replaceReferences()
{
string $selList[] = ls -rf;
string $currPath[] = file -q -l;
for($i=0; $i<size($currPath); $i++)
{
string $currPath[] = file -q -l;
string $fileName = basename( $currPath[$i], "" );
string $buffer[];
$numTokens = tokenize $currPath[$i] "/" $buffer;
pv_performAction ("D:/Projects/projects/resources/characters/"+$fileName) "Best Guess";
file -loadReference ($selList[$i]) -type "mayaAscii" -options "v=0;p=17" ("D:/Projects/projects/resources/characters/"+$fileName);
}
}
Thanks.