Is there a way to activate/deactive sin wave in hscript?
6592 9 2-
- tsaidavid
- Member
- 55 posts
- Joined: 7月 2005
- オフライン
-
- blackpixel
- Member
- 182 posts
- Joined: 4月 2009
- オンライン
Just create a new spare parameter via “Edit Parameter Interface” ( let's call it “mult” ) and multiply your values with that. So your expression will look like this: sin($F * 20) * ch( “mult” ). Then you can animate the multiplier and let it fade out. While you're at it you could also substitute the “20” with a speed parameter 8)
Edited by - 2015年7月28日 08:42:25
-
- blackpixel
- Member
- 182 posts
- Joined: 4月 2009
- オンライン
-
- blackpixel
- Member
- 182 posts
- Joined: 4月 2009
- オンライン
-
- tsaidavid
- Member
- 55 posts
- Joined: 7月 2005
- オフライン
Hahaha, blackpixel, you cracked me up after another long and stupid day! Amazed that you can play that far with the basic sin expression, sooo cool!
I have done some search earlier but only found the camera shake tips at Setting up Cameras page if($F%2, 1, -1) * easeout()
But not sure why it only works with camera cry Anyway, I like yours better, so much more control, thanks again!
I have done some search earlier but only found the camera shake tips at Setting up Cameras page if($F%2, 1, -1) * easeout()
But not sure why it only works with camera cry Anyway, I like yours better, so much more control, thanks again!
-
- tamte
- Member
- 9241 posts
- Joined: 7月 2007
- オフライン
davidave
…But not sure why it only works with camera :cry: …
it works with any channel
you can as well set following for the full time segment:
sin($FF*100)*bezier()
then still adjust bezier values and handles in animation editor while the result will be multiplied by the sin()
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- tsaidavid
- Member
- 55 posts
- Joined: 7月 2005
- オフライン
-
- tamte
- Member
- 9241 posts
- Joined: 7月 2007
- オフライン
davidavewhile you can do that be aware that the expressions are set for channel segments, so from current to next keyframe
So adding a sin() on top of keyed animation, never realized that can done!!!!
Thanks for the tip, Tomas!
so if you do sin($FF*100)*bezier() and place several more keyframes and adjust the bezier, the expression on each would be unique, meaning that if you then change it to sin($FF*10)*bezier() it would change the expression only for current segment and not for others, making it slightly more tricky to mantain continuity and keep it transparent
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Dean_19
- Member
- 322 posts
- Joined:
- オフライン
-
- Dean_19
- Member
- 322 posts
- Joined:
- オフライン
-
- Quick Links