exp_random.aep ●alwaysRandom 「通常のランダム機能」 毎フレーム単位で、フッテージをランダムなスケール、ランダムな位置に配置します。 以下の例は、コンポジション内のランダムな位置に映像を配置します。 位置 ------------------------- x=random(this_comp.width); y=random(this_comp.height); [x,y]; ------------------------- ●onlyFstRandom 「スタートフレームのみのランダム機能」 スタートフレーム時のみ、フッテージをランダムな位置に配置し、その後はその位置を保ちます。 1st. layer スタートフレーム時使用し、ランダムに設定されたフッテージの位置情報を確保するレイヤーです。 位置 ------------------------- x=random(this_comp.width); y=random(this_comp.height); [x,y]; ------------------------- 2nd. layer スタートフレームで設定された情報を、スタートフレーム以降の情報にコピーします。 位置 ------------------------- if (time == in_point) { this_comp.layer(this_layer,-1).position; } else { this_comp.layer(this_layer,-1).position.value_at_time(in_point); } ------------------------- *注)1st. layer、2nd. layerはペアで1組として使用してください。(必ず、1st. layerを2nd. layerの上に置いて下さい。)