sin expression with gap ?

   3523   4   0
User Avatar
Member
39 posts
Joined: 9月 2013
Offline
is this possible to make this curve with expression ?
tnx

Attachments:
question.jpg (87.6 KB)

User Avatar
Member
1390 posts
Joined: 7月 2005
Offline
 if (sin($F) < 0, 0, sin($F)) ?

or if you regret double sin() evaluation

{
   float s = sin($FF);
   if (s < 0)
      return 0;
   return s;
}

although I don't believe it's a big issue here

…or clamp as mentioned bellow
Edited by symek - 2016年6月16日 11:39:20
User Avatar
スタッフ
3464 posts
Joined: 7月 2005
Offline
clamp(sin($F), 0, 1)
Edited by goldfarb - 2016年6月16日 11:39:15
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
39 posts
Joined: 9月 2013
Offline
thank you guys , is this possible to stretch that gap too ?
Edited by vrman - 2016年6月16日 16:59:46

Attachments:
strech.jpg (28.3 KB)

User Avatar
Member
471 posts
Joined: 11月 2013
Offline
Hello.
Your question is being a bit complex for doing that by expression.
I create simple HIP file so that you can control attributes of wave via green node.
hope it helps.

Attachments:
Procedural Sine Wave.hip (73.8 KB)

  • Quick Links