var myProject = app.project; var myComposition = myProject.items.addComp("After_Effects_CS5_scripting_changes", 1920, 1080, 1.0, 5, 24); // Use the $.os method to query the operating system. var myTextLayer = myComposition.layers.addText("After Effects CS5 on "+"\r"+$.os); var myTextDocument = myTextLayer.property("ADBE Text Properties").property("ADBE Text Document"); var textDocument1 = myTextDocument.value; var myCamera = myComposition.layers.addCamera("camera_layer",[960,540]); // new attribues for setting layer and footage item label colors myComposition.label = 16; myTextLayer.label = 13; myCamera.label = 0; // new attributes for setting advanced motion blur parameters myComposition.motionBlurAdaptiveSampleLimit = 256; myComposition.motionBlurSamplesPerFrame = 64; // new option for making each character orient toward the camera, // which depends on the layer having the per-character 3D switch on myTextLayer.threeDPerChar = true; myTextLayer.autoOrient = AutoOrientType.CHARACTERS_TOWARD_CAMERA; // new text tracking (spacing) attribute textDocument1.tracking = 50; textDocument1.fontSize = 120; textDocument1.strokeWidth = 2; textDocument1.justification = ParagraphJustification.CENTER_JUSTIFY; myTextDocument.setValue(textDocument1);