Is there a way to activate/deactive sin wave in hscript?
5864 9 2- tsaidavid
- Member
- 55 posts
- Joined: July 2005
- Offline
- blackpixel
- Member
- 182 posts
- Joined: April 2009
- Offline
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 - July 28, 2015 08:42:25
- blackpixel
- Member
- 182 posts
- Joined: April 2009
- Offline
- blackpixel
- Member
- 182 posts
- Joined: April 2009
- Offline
- tsaidavid
- Member
- 55 posts
- Joined: July 2005
- Offline
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
- 8785 posts
- Joined: July 2007
- Offline
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
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- tsaidavid
- Member
- 55 posts
- Joined: July 2005
- Offline
- tamte
- Member
- 8785 posts
- Joined: July 2007
- Offline
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
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
-
- Quick Links