オブジェクトをゆらゆらさせる

「オブジェクトをゆらゆらさせる」の編集履歴(バックアップ)一覧はこちら

オブジェクトをゆらゆらさせる」(2008/10/16 (木) 07:57:59) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

選択オブジェクトのrotateZをsinでユラユラさせます。 各オブジェクトにrandアトリビュートを作ることにより ランダムっぽさを出します。 #code(){{ //create swinging Expression string $nodes[]=`ls -sl`; for($node in $nodes){ print ($node + "\n"); // Add rand attr if (!`attributeExists "rand" $node`) { addAttr -longName rand -defaultValue (rand(-1,1)) $node; } expression -s ($node+".rotateZ= " + $node + ".rand * sin((2+" + $node + ".rand) * time + " + $node + ".rand);") -o $node -ae 1 -uc all ; } }}
選択オブジェクトのrotateZをsinでユラユラさせます。 各オブジェクトにrandアトリビュートを作ることにより ランダムっぽさを出します。 #code(){{ //create swinging Expression string $nodes[]=`ls -sl`; for($node in $nodes){ print ($node); // Add rand attr if (!`attributeExists "rand" $node`) { addAttr -longName rand -defaultValue (rand(-1,1)) $node; } expression -s ($node+".rotateZ= " + $node + ".rand * sin((2+" + $node + ".rand) * time + " + $node + ".rand);") -o $node -ae 1 -uc all ; } }}

表示オプション

横に並べて表示:
変化行の前後のみ表示:
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。