Copy link to clipboard
Copied
I am trying to add a wiggle expression to RG Particular on the Wind X parameter. however, I am not sure how to limit the wiggle expression to stay between -400 and -1000. Any thoughts?
[Moved from the Lounge (which is where you can "connect with your peers" from across all of Adobe's products for conversations that don't directly relate to help and support) to a product-specific support forum - moderator]
Copy link to clipboard
Copied
Wiggle is never exact and applies additively to a base property value. So in your case your would have to set the value halway through the range at -700 and then experiment with the wiggle's amplitude parameter to keep it within the desired range.
Mylenium
Copy link to clipboard
Copied
Hi joeartist,
Try this:
var freq = 10; //set your wiggle frequency
var min = -1000; //minimum value
var max = -400; //maximum value
var wig = wiggle(freq,1);
linear(wig, -1,1, min, max);
Cheers
Henrique
Copy link to clipboard
Copied
Thanks for your thoughts. I tried this, however it does not seem to be working. Here is what I types in to the expression field (made some changes to the min/mx values).
var freq = 2;
var min = 0;
var max = 60;
var wig = wiggle(freq, 1);
linear(wig, -1,1, min, max);
does this seem correct?
-Joe
Copy link to clipboard
Copied
Hi Joe
That's correct. I tried the expression you posted and still works fine.
Which property are you applying it too?
I only tested it to the RG Particular Wind X property like you mentioned.
It won't work with all properties as they might have different dimensions.
Let me know where it's not working and the what error you are getting.
Cheers
Henrique