<pre><code>amp = effect(&quot;amplitude&quot;)(&quot;Slider&quot;);
freq = effect(&quot;frequency&quot;)(&quot;Slider&quot;);
wiggle(freq, amp, octaves = 1, amp_mult = .5, t = time)
</code></pre>
<ol>
<li>Add sliders to the layer you want to wiggle. Call them &quot;amp&quot; and &quot;freq&quot;.</li>
<li>Right click on the position control on the layer you want to wiggle.</li>
<li>Select &quot;separate dimensions&quot;.  The x and y controls will now be seperate.</li>
<li>Apply the expression above to whichever dimension you want to control.</li>
</ol>
<p><a href="https://i.sstatic.net/sKYyb.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sKYyb.png" alt="grab" /></a></p>

CC BY-SA 4.0
2023-04-08T16:29:44.810Z
2023-04-08T16:29:44.810Z
tomh
<p>How would I use the wiggle expression only on the y-axis?</p>
<p>I'm using two sliders. The first for the frequency and the second for the amplitude.</p>
<p>Here's my expression so far. This works but wiggles on both the x and y axis. I just want the y only. How would I ammend the expression below?</p>
<pre><code>wiggle(effect(&quot;Slider Control&quot;)(&quot;Slider&quot;),effect(&quot;Slider Control 2&quot;)(&quot;Slider&quot;))
</code></pre>
<p>update:</p>
<p>the following seems to work:</p>
<pre><code>[position[0],wiggle(effect(&quot;Slider Control&quot;)(&quot;Slider&quot;),effect(&quot;Slider Control 2&quot;)(&quot;Slider&quot;))[1]] 
</code></pre>
<p>any advice is still appreciated</p>
<p>thanks.</p>

<after-effects><after-effects-expressions>
How would I wiggle only on the y-axis when using wiggle with the slider expression control?
hanumanDev
# How would I wiggle only on the y-axis when using wiggle with the slider expression control?

(Asked by: username_0 on 2023-04-08)

How would I use the wiggle expression only on the y-axis?
I'm using two sliders. The first for the frequency and the second for the amplitude.
Here's my expression so far. This works but wiggles on both the x and y axis. I just want the y only. How would I ammend the expression below?
wiggle(effect("Slider Control")("Slider"),effect("Slider Control 2")("Slider"))

update:
the following seems to work:
[position[0],wiggle(effect("Slider Control")("Slider"),effect("Slider Control 2")("Slider"))[1]] 

any advice is still appreciated
thanks.

**Tags:** after-effects, after-effects-expressions


---

## 1 answers

### Answer by username_1 on 2023-04-08. Score: 1

amp = effect("amplitude")("Slider");
freq = effect("frequency")("Slider");
wiggle(freq, amp, octaves = 1, amp_mult = .5, t = time)


Add sliders to the layer you want to wiggle. Call them "amp" and "freq".
Right click on the position control on the layer you want to wiggle.
Select "separate dimensions".  The x and y controls will now be seperate.
Apply the expression above to whichever dimension you want to control.


---

