Dashboard_avatar
Feb 19, 2012
Post id: 309663 Report Item

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.












1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


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