sin expression with gap ?

   3318   4   0
User Avatar
Member
39 posts
Joined: Sept. 2013
Offline
is this possible to make this curve with expression ?
tnx

Attachments:
question.jpg (87.6 KB)

User Avatar
Member
1390 posts
Joined: July 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 - June 16, 2016 11:39:20
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
clamp(sin($F), 0, 1)
Edited by goldfarb - June 16, 2016 11:39:15
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
39 posts
Joined: Sept. 2013
Offline
thank you guys , is this possible to stretch that gap too ?
Edited by vrman - June 16, 2016 16:59:46

Attachments:
strech.jpg (28.3 KB)

User Avatar
Member
471 posts
Joined: Nov. 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