Display Dialog with List

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
foxbot
Posts: 9
Joined: April 23rd, 2013, 8:57 pm

Hey all,

I'm trying to figure out how to display a dialog that pops up with information about selected footage items. Basically you'd select all your footage in the project panel, run the script and a window pops up showing you a spreadsheet like display with properties like name, framerate, duration, alpha etc...

I've figured out how to call out a specific footage item in the array but I can't figure out how to display the entire list in a formatted way. Any help is much appreciated.
foxbot
Posts: 9
Joined: April 23rd, 2013, 8:57 pm

I got something to work but it's not very elegant. Any ideas how to display this information is a more polished manner?

Thanks!

Code: Select all


	var fileName = new Array();
	var fileFrameRate = new Array();
	var fileDuration = new Array();
	var displayList = new Array();

	for (var i = 0; i < selectedFiles.length; i++)
		{
			fileName[i] = selectedFiles[i].name;
			fileFrameRate[i] = selectedFiles[i].frameRate;
			fileDuration[i] = selectedFiles[i].duration;

			displayList[i] = fileName[i] + " " + fileFrameRate[i] + " " + timeToCurrentFormat(fileDuration[i], fileFrameRate[i]) + "\n";
			
		}

	alert (displayList);
Post Reply