sin expression with gap ?
3521
4
0
vrman
Member
39 posts
Joined: 9月 2013
Offline
2016年6月16日 11:20
is this possible to make this curve with expression ? tnx
Attachments:
question.jpg (87.6 KB)
symek
Member
1390 posts
Joined: 7月 2005
Offline
2016年6月16日 11:36
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
goldfarb
スタッフ
3464 posts
Joined: 7月 2005
Offline
2016年6月16日 11:38
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
vrman
Member
39 posts
Joined: 9月 2013
Offline
2016年6月16日 16:56
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)
Nima
Member
471 posts
Joined: 11月 2013
Offline
2016年6月18日 17:04
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)