Esempio n. 1
0
bool THISTimeline::loadComposition(string compFolder)
{
	if(compFolder == "" || !ofDirectory::doesDirectoryExist(compFolder, false)){
		ofLog(OF_LOG_ERROR, "THISTimeline -- comp '" + compFolder + "' failed to load");
		return false;
	}

	setWorkingFolder(compFolder);
	
    if(settings.loadFile(settingsFileName)){
		return loadComposition(settings);
    }
	else{
		ofSystemAlertDialog("THISTimeline -- LOAD COMP -- Failed to load settings file '" + settingsFileName + "'.");
		exporter->pathPrefix = compFolder;
		return false;
	}
	return true;
}
Esempio n. 2
0
void THISTimeline::newComposition(){
	ofSystemAlertDialog("Choose where to save your comp files");
	string newWorkingDirectory = "";
	string newADir = "";
	string newBDir = "";
	string newDistortDir = "";
	string newOutDir = "";
	ofFileDialogResult result;
	result = ofSystemLoadDialog("Choose Comp Directory", true);
	if(result.bSuccess){
		newWorkingDirectory = result.filePath;
	}
	else{
		ofSystemAlertDialog("You didn't select a Comp directory.");
		return;
	}
	
	ofSystemAlertDialog("Choose SOURCE A sequence folder");
	result = ofSystemLoadDialog("Choose SOURCE A sequence folder", true);
	if(result.bSuccess && ofDirectory::doesDirectoryExist(result.filePath, false)){
		newADir = result.filePath;
	}
	else{
		ofSystemAlertDialog("Failed to load Source A Sequence directory");
		return;
	}
	
	ofSystemAlertDialog("Choose SOURCE B sequence folder");
	result = ofSystemLoadDialog("Choose SOURCE B sequence folder", true);
	if(result.bSuccess && ofDirectory::doesDirectoryExist(result.filePath, false)){
		newBDir = result.filePath;
	}
	else{
		ofSystemAlertDialog("Failed to load Source B Sequence");
		return;
	}
	
	ofSystemAlertDialog("Choose DISTORTION sequence folder");
	result = ofSystemLoadDialog("Choose DISTORTION sequence folder", true);
	if(result.bSuccess && ofDirectory::doesDirectoryExist(result.filePath, false)){
		newDistortDir = result.filePath;
	}
	else{
		ofSystemAlertDialog("Failed to load Distortion Sequence");
		return;
	}
	
	ofSystemAlertDialog("Set OUTPUT Directory");			
	result = ofSystemLoadDialog("Set Output Directory", true);
	if(result.bSuccess && ofDirectory::doesDirectoryExist(result.filePath, false)){
		newOutDir = result.filePath;
	}
	else{
		ofSystemAlertDialog("Failed to select output directory");
		return;
	}
	
	setWorkingFolder(newWorkingDirectory);
	settings.setValue("settings:source_directory_a", newADir);		
	settings.setValue("settings:source_directory_b", newBDir);
	settings.setValue("settings:distortion_directory", newDistortDir);
	exporter->pathPrefix = newOutDir;
	settings.setValue("settings:output_directory", newOutDir);
	
	loadComposition(settings);	
	settings.saveFile(settingsFileName);

}
Esempio n. 3
0
void TestRunnerMobile::setWorkingFolderAndEnableControls() {
    setWorkingFolder(_workingFolderLabel);

    _connectDeviceButton->setEnabled(true);
    _downloadAPKPushbutton->setEnabled(true);
}