| 動作バージョン |
2.0 |
|---|---|
| Windows | ○ |
| Macintosh | ○ |
| 解 説 | コンポジション内の全オブジェクトのアンカーポイントを移動させるにはコンポジション内のobjects配列を参照します。このobjects配列にコンポジション内のオブジェクトデータがあるので、「Comp.objects[i].anchorPoint.x」「Comp.objects[i].anchorPoint.y」にアンカーポイントの座標(オブジェクトのローカル座標)を指定します。 |
|---|---|
| コード | Comp = application.currentComposition; len = Comp.objects.length; for (i=0; i<len; i++) { Comp.objects[i].anchorPoint.x = 20; Comp.objects[i].anchorPoint.y = 10; } |
| ■サンプルスクリプトをダウンロードする >>.zip |