Progress Bar window


#1

How to link up Progress bar window for this script.

This script is for clearing DAG History.

select -all;
	string $select[] = `ls -tr `;
	string $poly[] = `filterExpand -sm 12 $select`;
	string $de[] = `ls -sl -as`;

	select -d $de;
	select -d $poly;
	delete;
	select -r $poly;
	sets -e -forceElement initialShadingGroup;


	select -cl $poly ;

	print ("Cleared DAG History");

#2

There is no way to use a progress bar in such a kind of operation.
Progress bars only are possible if you iterate manually over a range ob elements like:

for(int $i = 0; $i < 1000; $i++)
{
	.......
}

Then you can update the progress bar for every incremental step. But you are doing everything in one step what means you have no way to update a progress bar.


#3

thnxs dude… :wavey: