点のインデックスを軸に0〜1の重みを作り、Min〜Max に写像して選んだ属性に適用した PointCloud を出力します。Phase に Saw 波形のLFOを刺すと、テンポ同期で波が群れを走ります。
モード(ドロップダウン)
- Wave(既定)— 点ごとに位相をずらした余弦波。重みは
0.5 - 0.5cos((Phase - index × Stagger) × 2π) で、LFOのSineと同じく位相の頭が谷になります
- Sweep — 正規化インデックス上を幅
Sweep width の窓が巡回します。窓との距離はラップするので、末尾と先頭が繋がって見えます
対象属性(ドロップダウン)
- UniformScale(既定)— 写像値をスケールに乗算(下限0.001)
- ColorGradient — ColorA→ColorB を補間して色を上書き
- RotationY —
写像値 × 360 度をY軸回転に加算
- PositionY — 写像値をYに加算
パラメータ
- Phase(既定0)— Sweep では小数部のみ使用し、0→1で1巡
- Per-index offset(Stagger)(既定0.05)— 隣り合う点の位相差。Wave のみ
- Sweep width(既定0.15、下限0.005)— 窓の幅。Sweep のみ
- Min / Max(既定 1 / 2.5)
- ColorA / ColorB — ColorGradient のみで使用
ColorGradient は Min / Max を使わず、重みそのものを ColorA→ColorB の補間率にします。
入力ポート
| Port ID | 型 |
PointCloud | PointCloudInput |
Phase | float |
Per-index offset | float |
Sweep width | float |
Min | float |
Max | float |
ColorA | Color |
ColorB | Color |
出力ポート
| Port ID | 型 |
PointCloud | PointCloudOutput |
スクリプトから設定可能なメンバー
| パス | 型 |
phaseInput | float |
staggerInput | float |
widthInput | float |
minInput | float |
maxInput | float |
Synapse Apps(スクリプティング)
await synapse.modules.create({ type: "WaveMap" })