| 動作バージョン | 
					2.0 | 
|---|---|
| Windows | ○ | 
| Macintosh | ○ | 
| 解 説 | 文字の間隔を制御するには、選択されたテキストを1文字ずつ分解します。これはconvertIntoObjects()で分解することができます。次に現時点の文字の位置を保持し開始フレームとします。文字を一番最初の文字の位置に設定します。次に終了フレームに移動し、新しい座標を設定します。  | 
				
|---|---|
| コード | textKern(24);// フレーム数 function textKern(lastFrame) { var objX = new Array(); var objY = new Array(); var Comp = application.currentComposition; var cx = Comp.size.x; var cy = Comp.size.y; textObj = Comp.selection[0].convertIntoObjects(); len = textObj.length; for (i=0; i<len; i++) { objX[i] = textObj[i].position.x; objY[i] = textObj[i].position.y; } for (i=0; i<len; i++) { textObj[i].stopwatch.position = true; textObj[i].startFrame = 0; textObj[i].currentFrame = 0; textObj[i].position.x = textObj[0].position.x; textObj[i].position.y = textObj[0].position.y; textObj[i].endFrame = lastFrame; textObj[i].currentFrame = lastFrame; textObj[i].position.x = objX[i]; textObj[i].position.y = objY[i]; } }  | 
				
| ■サンプルスクリプトをダウンロードする >>.zip | 
				|
| ■サンプルの実行結果を見る >>実行 |