Is it possible to have a double progress window in maya?
ciaran_93
it sure is... (The $d is just a delay so you can see it working!)
string $window = `window`;
columnLayout;
string $progressControlX = `progressBar -maxValue 50 -width 300 -ann "x prog"`;
string $progressControlY = `progressBar -maxValue 50 -width 300 -ann "y prog"`;
showWindow $window;
for ($x=0; $x<=50; $x++)
{
progressBar -edit -progress $x $progressControlX;
for ($y=0; $y<=50; $y++)
{
progressBar -edit -progress $y $progressControlY;
for ($d=0; $d<100000; $d++)
{
}
}
}
NN comments
Julian Mann
-
Cheers Ciaran – I fixed the formatting – you just have to select the code block and hit the little button with 1s and 0s. Either that or indent everything 4 spaces.