2011-09-01から1ヶ月間の記事一覧

[InDesign JavaScript] フレームは残しつつ中の画像やテキストを削除

//画像の削除の場合 var Obj = app.activeDocument.selection[0].graphics[0]; Obj.remove();//テキストストーリーの削除の場合 var myStory = app.activeDocument.selection[0].parentStory; myStory.remove();

[InDesign JavaScript] フレームの中の画像を相対値で移動する

var myDoc = app.activeDocument; //単位をミリに変更 myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS; myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;//選択したフレームの画像を選…

[InDesign JavaScript] 選択したフレームはそのままに中の画像だけを回転させる

例)中心を支点に27度反時計回りに回転させるvar myRotateMatrix = app.transformationMatrices.add({counterclockwiseRotationAngle:27}); app.activeDocument.selection[0].graphics[0].transform(CoordinateSpaces.pasteboardCoordinates, AnchorPoint.…