If I have the UTE open, when I run my script it works with no issues.. If I spwan the UTE window using the "TextureViewWindow" command in my script and then run the rest of my script, the script does not work.
here is my script.. I would like to spawn the UTE then run my script.
global proc gs_reAssignTextureFileInUTE()
{
int $count;
string $texWinName[] = `getPanel -sty polyTexturePlacementPanel`;
string $textureNames[] = `textureWindow -q -imn $texWinName[0]`;
for($tex in $textureNames)
{
//if tex name contains "file" assign it the proper texture
if(`match "file" $tex` != "")
{
textureWindow -e -in $count $texWinName[0];
print ($tex + "\n" +$count + "\n");
}
$count ++;
}
}
Any help is appreciated
Thanks,
Gary