// Created using compCode v1.0.4
// 20170515 from composition "CompCodeTests" in project "/p/Projects/_AE Projects/LEARN/CC17_LearnCompCode/First.aep"
//
// aescripts.com/compCode

// compCode_20170515_065411();
function compCode_20170515_065411() {

app.beginUndoGroup("CompCodeTests");

try {

// Create Folder hierarchy
	var solids_folder = getItem("Solids", FolderItem, app.project.rootFolder);
	if (solids_folder === null) {
		solids_folder = app.project.items.addFolder("Solids");
		solids_folder.label = 2;
	}

// Create Compositions
	var compcodetests_comp = app.project.items.addComp("CompCodeTests", 1280, 720, 1, 2.002002002002, 29.9700012207031);
		compcodetests_comp.time = 0;
		compcodetests_comp.bgColor = [0,0,0];

// Import all FootageItems
	var alberteinsteinbyzuzahind5pcbugcropjpg_footage = getItem("Albert_einstein_by_zuzahin-d5pcbug-crop.jpg", FileSource,  app.project.rootFolder);
	if (alberteinsteinbyzuzahind5pcbugcropjpg_footage === null) {
		var alberteinsteinbyzuzahind5pcbugcropjpg_path = "/t/Pictures/HumanGeniusTheme/Albert_einstein_by_zuzahin-d5pcbug-crop.jpg";
		var alberteinsteinbyzuzahind5pcbugcropjpg_importOptions = new ImportOptions(new File(alberteinsteinbyzuzahind5pcbugcropjpg_path));
		var alberteinsteinbyzuzahind5pcbugcropjpg_footage = app.project.importFile(alberteinsteinbyzuzahind5pcbugcropjpg_importOptions);
			alberteinsteinbyzuzahind5pcbugcropjpg_footage.label = 5;
			alberteinsteinbyzuzahind5pcbugcropjpg_footage.selected = false;
	}

// Create Solid Layers
	var mediumMagentaSolid1_solid = getItem("Medium Magenta Solid 1", SolidSource,  solids_folder);
	if (mediumMagentaSolid1_solid === null) {
		var mediumMagentaSolid1_tempSolid = compcodetests_comp.layers.addSolid([0.77621001005173,0.39067998528481,0.8588240146637], "Medium Magenta Solid 1", 1280, 720, 1);
			mediumMagentaSolid1_solid = mediumMagentaSolid1_tempSolid.source;
			mediumMagentaSolid1_solid.label = 1;
			mediumMagentaSolid1_solid.parentFolder = solids_folder;
		mediumMagentaSolid1_tempSolid.remove();
	}

// Working with comp "CompCodeTests", varName "compcodetests_comp";
	compcodetests_comp.openInViewer();
	var loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus = compcodetests_comp.layers.addBoxText([632,406], "Lorem ipsum dolor sit amet,consectetur adipiscing elit. Mauris hendr tellus quis dictum gravida, lectus nunc pulvinar magna, accumsan malesuada purus lectus vitae lectus");
		loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus.moveToEnd();
		var loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextProp = loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus.property("ADBE Text Properties").property("ADBE Text Document");
		var loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument = loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextProp.value;
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.font = "Aleo-Regular";
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.fontSize = 42;
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.applyFill = true;
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.fillColor = [1,1,1];
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.applyStroke = false;
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.justification = ParagraphJustification.LEFT_JUSTIFY;
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.tracking = 0;
			if (parseFloat(app.version) >= 13.2 ) {
				loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.verticalScale = 1;
				loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.horizontalScale = 1;
				loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.baselineShift = 0;
				loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.tsume = 0;
				// These values are read-only. You have to set them manually in the comp.
				// loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.fauxBold = false;
				// loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.fauxItalic = false;
				// loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.allCaps = false;
				// loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.smallCaps = false;
				// loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.superscript = false;
				// loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument.subscript = false;
			}
			loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextProp.setValue(loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus_TextDocument);
		loremIpsumDolorSitAmetconsecteturAdipiscingElitMaurisHendrTellusQuisDictumGravidaLectusNuncPulvinarMagnaAccumsanMalesuadaPurusLectusVitaeLectus.property("ADBE Transform Group").property("ADBE Position").setValue([882,403,0]);
	// Add Shape Layer "GridGuide", varName "gridguide";
	var gridguide = compcodetests_comp.layers.addShape();
		gridguide.name = "GridGuide";
		gridguide.guideLayer = true;
		gridguide.moveToEnd();
		var gridguide_marker1 = new MarkerValue("use my effect controls to change number of lines, gutter and more" + "\n" + 
				"" + "\n" + 
				"Such a hint will still be generated for the next 3 grids you create. You can change this in the GridGuide settings.");
			gridguide_marker1.eventCuePoint = true;
			var newMarkerParameters = new Object;
			gridguide_marker1.setParameters(newMarkerParameters);
			gridguide.property("ADBE Marker").setValueAtTime(0, gridguide_marker1);
		gridguide.property("ADBE Root Vectors Group").addProperty("ADBE Vector Group");
		gridguide.property("ADBE Root Vectors Group").property(1).name = "grid";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).addProperty("ADBE Vector Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).name = "vertical lines";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(2).addProperty("ADBE Vector Shape - Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(2).property(1).name = "V line";
		var gridguidePath = gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(2).property(1).property("ADBE Vector Shape");
		var gridguidePath_shapeVertices = [[503.499969482422,0],[503.499969482422,720]];
		var gridguidePath_shapeInTangets = [[0,0],[0,0]];
		var gridguidePath_shapeOutTangets = [[0,0],[0,0]];
		var gridguidePath_shapeClosed = false;
		createStaticShape(gridguidePath, gridguidePath_shapeVertices, gridguidePath_shapeInTangets, gridguidePath_shapeOutTangets, gridguidePath_shapeClosed);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(2).addProperty("ADBE Vector Shape - Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(2).property(2).name = "V line";
		var gridguidePath = gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(2).property(2).property("ADBE Vector Shape");
		var gridguidePath_shapeVertices = [[562.357543945313,0],[562.357543945313,720]];
		var gridguidePath_shapeInTangets = [[0,0],[0,0]];
		var gridguidePath_shapeOutTangets = [[0,0],[0,0]];
		var gridguidePath_shapeClosed = false;
		createStaticShape(gridguidePath, gridguidePath_shapeVertices, gridguidePath_shapeInTangets, gridguidePath_shapeOutTangets, gridguidePath_shapeClosed);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Anchor").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Position").setValue([-640,-360]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Scale").setValue([100,100]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Skew").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Skew Axis").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Rotation").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).addProperty("ADBE Vector Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).name = "horizontal lines";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).addProperty("ADBE Vector Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).name = "gutter 0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).addProperty("ADBE Vector Shape - Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).property(1).name = "H line";
		var gridguidePath = gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).property(1).property("ADBE Vector Shape");
		var gridguidePath_shapeVertices = [[0,0],[1280,0]];
		var gridguidePath_shapeInTangets = [[0,0],[0,0]];
		var gridguidePath_shapeOutTangets = [[0,0],[0,0]];
		var gridguidePath_shapeClosed = false;
		createStaticShape(gridguidePath, gridguidePath_shapeVertices, gridguidePath_shapeInTangets, gridguidePath_shapeOutTangets, gridguidePath_shapeClosed);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).addProperty("ADBE Vector Filter - Repeater");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).property(2).property("ADBE Vector Repeater Copies").setValue(1);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).property(2).property(4).property("ADBE Vector Repeater Position").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Anchor").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Position").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Scale").setValue([100,100]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Skew").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Skew Axis").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Rotation").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).addProperty("ADBE Vector Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).name = "gutter 1";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).addProperty("ADBE Vector Shape - Group");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).property(1).name = "H line";
		var gridguidePath = gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).property(1).property("ADBE Vector Shape");
		var gridguidePath_shapeVertices = [[0,0],[1280,0]];
		var gridguidePath_shapeInTangets = [[0,0],[0,0]];
		var gridguidePath_shapeOutTangets = [[0,0],[0,0]];
		var gridguidePath_shapeClosed = false;
		createStaticShape(gridguidePath, gridguidePath_shapeVertices, gridguidePath_shapeInTangets, gridguidePath_shapeOutTangets, gridguidePath_shapeClosed);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).addProperty("ADBE Vector Filter - Repeater");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).property(2).property("ADBE Vector Repeater Copies").setValue(1);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).property(2).property(4).property("ADBE Vector Repeater Position").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Anchor").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Position").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Scale").setValue([100,100]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Skew").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Skew Axis").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Rotation").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Anchor").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Position").setValue([-640,-360]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Scale").setValue([100,100]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Skew").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Skew Axis").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Rotation").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).addProperty("ADBE Vector Graphic - Stroke");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(3).property("ADBE Vector Stroke Color").setValue([0.16078431904316,0.47843137383461,1,1]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(3).property("ADBE Vector Stroke Opacity").setValue(100);
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(3).property("ADBE Vector Stroke Width").setValue(1);
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Anchor").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Position").setValue([0,0]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Scale").setValue([100,100]);
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Skew").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Skew Axis").setValue(0);
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Rotation").setValue(0);
		gridguide.property("ADBE Effect Parade").addProperty("Pseudo/Zc16e1f77df1Q");
		gridguide.property("ADBE Effect Parade").property(1).name = "Grid Parameters";
		gridguide.property("ADBE Effect Parade").property(1).property("Pseudo/Zc16e1f77df1Q-0001").setValue(58.8575477600098);
		gridguide.property("ADBE Effect Parade").property(1).property("Pseudo/Zc16e1f77df1Q-0002").setValue([0,134.546768188477]);
		gridguide.property("ADBE Transform Group").property("ADBE Opacity").setValue(55);
	var firstnameLastname = compcodetests_comp.layers.addText("Albert Einstein");
		firstnameLastname.name = "Firstname Lastname";
		firstnameLastname.moveToEnd();
		var firstnameLastname_TextProp = firstnameLastname.property("ADBE Text Properties").property("ADBE Text Document");
		var firstnameLastname_TextDocument = firstnameLastname_TextProp.value;
			firstnameLastname_TextDocument.font = "SharpSansNo1-Bold";
			firstnameLastname_TextDocument.fontSize = 64;
			firstnameLastname_TextDocument.applyFill = true;
			firstnameLastname_TextDocument.fillColor = [1,1,1];
			firstnameLastname_TextDocument.applyStroke = false;
			firstnameLastname_TextDocument.justification = ParagraphJustification.CENTER_JUSTIFY;
			firstnameLastname_TextDocument.tracking = 0;
			if (parseFloat(app.version) >= 13.2 ) {
				firstnameLastname_TextDocument.verticalScale = 1;
				firstnameLastname_TextDocument.horizontalScale = 1;
				firstnameLastname_TextDocument.baselineShift = 0;
				firstnameLastname_TextDocument.tsume = 0;
				// These values are read-only. You have to set them manually in the comp.
				// firstnameLastname_TextDocument.fauxBold = false;
				// firstnameLastname_TextDocument.fauxItalic = false;
				// firstnameLastname_TextDocument.allCaps = false;
				// firstnameLastname_TextDocument.smallCaps = false;
				// firstnameLastname_TextDocument.superscript = false;
				// firstnameLastname_TextDocument.subscript = false;
			}
			firstnameLastname_TextProp.setValue(firstnameLastname_TextDocument);
		firstnameLastname.property("ADBE Transform Group").property("ADBE Anchor Point").setValue([-201.908203125,-23.138671875,0]);
		firstnameLastname.property("ADBE Transform Group").property("ADBE Position").setValue([562.357543945313,104.227996826172,0]);
		firstnameLastname.property("ADBE Transform Group").property("ADBE Scale").setValue([111.305679321289,111.305679321289,100]);
	// Add existing footage item "Albert_einstein_by_zuzahin-d5pcbug-crop.jpg", varName "alberteinsteinbyzuzahind5pcbugcropjpg_footage";
	var alberteinsteinbyzuzahind5pcbugcropjpg = compcodetests_comp.layers.add(alberteinsteinbyzuzahind5pcbugcropjpg_footage);
		alberteinsteinbyzuzahind5pcbugcropjpg.moveToEnd();
		alberteinsteinbyzuzahind5pcbugcropjpg.property("ADBE Mask Parade").addProperty("ADBE Mask Atom");
		alberteinsteinbyzuzahind5pcbugcropjpg.property("ADBE Mask Parade").property(1).color = [0.89411764705882,0.84705882352941,0.29803921568627];
		var alberteinsteinbyzuzahind5pcbugcropjpgMaskPath = alberteinsteinbyzuzahind5pcbugcropjpg.property("ADBE Mask Parade").property(1).property("ADBE Mask Shape");
		var alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeVertices = [[903.848999023438,-5.3702392578125],[317.083770751953,-5.3702392578125],[317.083770751953,760.586853027344],[903.848999023438,760.586853027344]];
		var alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeInTangets = [[0,0],[0,0],[0,0],[0,0]];
		var alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeOutTangets = [[0,0],[0,0],[0,0],[0,0]];
		var alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeClosed = true;
		createStaticShape(alberteinsteinbyzuzahind5pcbugcropjpgMaskPath, alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeVertices, alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeInTangets, alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeOutTangets, alberteinsteinbyzuzahind5pcbugcropjpgMaskPath_shapeClosed);
		alberteinsteinbyzuzahind5pcbugcropjpg.property("ADBE Transform Group").property("ADBE Position").setValue([317.811187744141,360,0]);
		alberteinsteinbyzuzahind5pcbugcropjpg.property("ADBE Transform Group").property("ADBE Scale").setValue([56.922248840332,56.922248840332,100]);
	// Add existing Solid Layer "Medium Magenta Solid 1", varName "mediumMagentaSolid1_solid";
	var mediumMagentaSolid1 = compcodetests_comp.layers.add(mediumMagentaSolid1_solid);
		mediumMagentaSolid1.moveToEnd();
		mediumMagentaSolid1.property("ADBE Effect Parade").addProperty("ADBE Ramp");
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).name = "Ramp";
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).property("ADBE Ramp-0001").setValue([640,0]);
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).property("ADBE Ramp-0002").setValue([0.54901963472366,0.54901963472366,0.54901963472366,1]);
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).property("ADBE Ramp-0003").setValue([640,720]);
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).property("ADBE Ramp-0004").setValue([0,0,0,1]);
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).property("ADBE Ramp-0005").setValue(2);
		mediumMagentaSolid1.property("ADBE Effect Parade").addProperty("ADBE Easy Levels");
		mediumMagentaSolid1.property("ADBE Effect Parade").addProperty("ADBE Calculations");
		mediumMagentaSolid1.property("ADBE Effect Parade").property(3).property("ADBE Calculations-0008").setValue(1);
		mediumMagentaSolid1.property("ADBE Effect Parade").property(3).property("ADBE Calculations-0012").setValue(17);


	// Apply expressions to properties
	try {
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Anchor").expression = "//locked - do not change this property" + "\n" + 
				"[0,0]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Position").expression = File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09value%20+%5B0,minSurfacePos%5B1%5D%5D");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Scale").expression = File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09%5B100,100*surfaceScaleFactor%5B1%5D%5D");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Skew").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Skew Axis").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(1).property(3).property("ADBE Vector Rotation").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).property(2).property("ADBE Vector Repeater Copies").expression = "try {" + "\n" + 
				File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09%20%20var%20epsilon%20=%200.000001;%20%20%20var%20totalSize%20=%20(surfaceSize%5B1%5D)%20-%20-1*(Math.max(0,thisLayer(%22ADBE%20Effect%20Parade%22)(%22Pseudo/Zc16e1f77df1Q%22)(3)));") + "\n" + 
				"  Math.floor(epsilon + totalSize/(thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(1)))+1} catch(err){0}";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(2).property(2).property(4).property("ADBE Vector Repeater Position").expression = "[0,(thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(1))]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Anchor").expression = "//locked - do not change this property" + "\n" + 
				"[0,0]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Position").expression = "try{" + "\n" + 
				File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09%20%20var%20gridOffset%20=%20(thisLayer(%22ADBE%20Effect%20Parade%22)(%22Pseudo/Zc16e1f77df1Q%22)(2)%5B1%5D*1);") + "\n" + 
				"  gridOffset = ((gridOffset - minSurfacePos[1])% (thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(1)))+ minSurfacePos[1];" + "\n" + 
				"  gridOffset += -1*(Math.max(0,thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(3)));" + "\n" + 
				"  var gridOffsetOtherDim = minSurfacePos[0];" + "\n" + 
				"value + [gridOffsetOtherDim,gridOffset]" + "\n" + 
				"} catch(err){value}";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Scale").expression = File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09%5B100*surfaceScaleFactor%5B0%5D,100%5D");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Skew").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Skew Axis").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(1).property(3).property("ADBE Vector Rotation").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).property(2).property("ADBE Vector Repeater Copies").expression = "try {" + "\n" + 
				File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09%20%20var%20epsilon%20=%200.000001;%20%20%20var%20totalSize%20=%20(surfaceSize%5B1%5D);") + "\n" + 
				"  Math.floor(epsilon + totalSize/(thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(1)))+1} catch(err){0}";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(2).property(2).property(4).property("ADBE Vector Repeater Position").expression = "[0,(thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(1))]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Anchor").expression = "//locked - do not change this property" + "\n" + 
				"[0,0]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Position").expression = "try{" + "\n" + 
				File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09%20%20var%20gridOffset%20=%20(thisLayer(%22ADBE%20Effect%20Parade%22)(%22Pseudo/Zc16e1f77df1Q%22)(2)%5B1%5D*1);") + "\n" + 
				"  gridOffset = ((gridOffset - minSurfacePos[1])% (thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(1)))+ minSurfacePos[1];" + "\n" + 
				"  var gridOffsetOtherDim = minSurfacePos[0];" + "\n" + 
				"value + [gridOffsetOtherDim,gridOffset]" + "\n" + 
				"} catch(err){value}";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Scale").expression = File.decode("%09var%20thisCompSize%20=%20%5BthisComp.width,%20thisComp.height%5D;%09var%20surfaceCorners%20=%20%5BfromComp(%5B0,0%5D),%20fromComp(%5BthisCompSize%5B0%5D,0%5D),fromComp(%5B0,thisCompSize%5B1%5D%5D),fromComp(%5BthisCompSize%5B0%5D,thisCompSize%5B1%5D%5D)%5D;%09var%20minSurfacePos%20=%20%5B%09%09Math.min(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.min(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20maxSurfacePos%20=%20%5B%09%09Math.max(surfaceCorners%5B0%5D%5B0%5D,surfaceCorners%5B1%5D%5B0%5D,surfaceCorners%5B2%5D%5B0%5D,surfaceCorners%5B3%5D%5B0%5D)+thisCompSize%5B0%5D/2,%09%09Math.max(surfaceCorners%5B0%5D%5B1%5D,surfaceCorners%5B1%5D%5B1%5D,surfaceCorners%5B2%5D%5B1%5D,surfaceCorners%5B3%5D%5B1%5D)+thisCompSize%5B1%5D/2%09%5D;%09var%20surfaceSize%20=%20%5B%09%09maxSurfacePos%5B0%5D%20-%20minSurfacePos%5B0%5D,%09%09maxSurfacePos%5B1%5D%20-%20minSurfacePos%5B1%5D%09%5D;%09var%20surfaceScaleFactor%20=%20%5B%09%09surfaceSize%5B0%5D%20/%20thisCompSize%5B0%5D,%09%09surfaceSize%5B1%5D%20/%20thisCompSize%5B1%5D%09%5D;%09%5B100*surfaceScaleFactor%5B0%5D,100%5D");
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Skew").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Skew Axis").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(2).property(2).property(3).property("ADBE Vector Rotation").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Anchor").expression = "//locked - do not change this property" + "\n" + 
				"[0,0]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Position").expression = "//locked - do not change this property" + "\n" + 
				"[-640,-360]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Scale").expression = "//locked - do not change this property" + "\n" + 
				"[100,100]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Skew").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Skew Axis").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(2).property(3).property("ADBE Vector Rotation").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(3).property("ADBE Vector Stroke Color").expression = "thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(5)";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(3).property("ADBE Vector Stroke Opacity").expression = "thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(6)";
		gridguide.property("ADBE Root Vectors Group").property(1).property(2).property(3).property("ADBE Vector Stroke Width").expression = "thisLayer(\"ADBE Effect Parade\")(\"Pseudo/Zc16e1f77df1Q\")(7)";
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Anchor").expression = "//locked - do not change this property" + "\n" + 
				"[0,0]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Position").expression = "//locked - do not change this property" + "\n" + 
				"[0,0]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Scale").expression = "//locked - do not change this property" + "\n" + 
				"[100,100]";
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Skew").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Skew Axis").expression = "//locked - do not change this property" + "\n" + 
				"0";
		gridguide.property("ADBE Root Vectors Group").property(1).property(3).property("ADBE Vector Rotation").expression = "//locked - do not change this property" + "\n" + 
				"0";
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).property("ADBE Ramp-0001").expression = "[thisLayer.width/2, thisLayer.height/2]";
		mediumMagentaSolid1.property("ADBE Effect Parade").property(1).property("ADBE Ramp-0003").expression = "[0,0]";
	} catch (err) {}

compcodetests_comp.openInViewer();
} catch(e) {
	alert(e.toString() + "\nError on line: " + e.line.toString());
}
app.endUndoGroup();


function getItem(itemName, itemInstanceName, locationObject) {
	if (locationObject.numItems > 0) {
		for (var i = 1; i <= locationObject.numItems; i ++) {
			var curItem = locationObject.item(i);
			if (curItem.name === itemName) {
				if (curItem instanceof itemInstanceName || (curItem.mainSource !== "undefined" && curItem.mainSource instanceof itemInstanceName)) {
					return curItem;
				}
			}
		}
	}
	return null;
}

function createStaticShape(path, vertexArray, inTangentsArray, outTangentsArray, closed) {
	var pathValue = path.value;
		pathValue.vertices = vertexArray;
		pathValue.inTangents = inTangentsArray;
		pathValue.outTangents = outTangentsArray;
		pathValue.closed = closed;
	path.setValue(pathValue);
}
}

