Feedback

type to search

Is it possible to make two progress windows in maya?

Asked by

Is it possible to have a double progress window in maya?

or Cancel

1 answer

1

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
ciaran_93
-

well it screwed up the formatting… but u get the idea….

julian
-

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.

knishua
-

thank you Julian

knishua
-

they say there is never a stupid question ….thank you julian

michalf
-

there’s a nice ‘pause’ command, so you don’t have to code an empty loop :))

or Cancel

Your answer

You need to join VFX Overflow to complete this action, click here to do so.