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()
string $texWinName = `getPanel -sty polyTexturePlacementPanel`;
string $textureNames = `textureWindow -q -imn $texWinName`;
for($tex in $textureNames)
//if tex name contains "file" assign it the proper texture
if(`match "file" $tex` != "")
textureWindow -e -in $count $texWinName;
print ($tex + "\n" +$count + "\n");
Any help is appreciated