sin expression with gap ?
3318
4
0
vrman
Member
39 posts
Joined: Sept. 2013
Offline
June 16, 2016 11:20 a.m.
is this possible to make this curve with expression ? tnx
Attachments:
question.jpg (87.6 KB)
symek
Member
1390 posts
Joined: July 2005
Offline
June 16, 2016 11:36 a.m.
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
goldfarb
Staff
3455 posts
Joined: July 2005
Offline
June 16, 2016 11:38 a.m.
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
vrman
Member
39 posts
Joined: Sept. 2013
Offline
June 16, 2016 4:56 p.m.
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)
Nima
Member
471 posts
Joined: Nov. 2013
Offline
June 18, 2016 5:04 p.m.
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)