| 動作バージョン |
2.0 |
|---|---|
| Windows | ○ |
| Macintosh | ○ |
| 解 説 | コンポジション内の全オブジェクトの傾斜をランダムにするにはコンポジション内のobjects配列を参照します。このobjects配列にコンポジション内のオブジェクトデータがあるので、「skew.x」「skew.y」にMath.random()で求めた乱数値を設定します。 |
|---|---|
| コード | Comp = application.currentComposition; len = Comp.objects.length; for (i=0; i<len; i++) { n = Math.random() * 50 - 25; Comp.objects[i].skew.x = n; Comp.objects[i].skew.y = n; } |
| ■サンプルスクリプトをダウンロードする >>.zip |