Constant Interpolate?

App SurgeApp Surge Member Posts: 651
edited March 2012 in Working with GS (Mac)
Hey there,
I'm going for an effect where my actor interpolates it's alpha back and forth from 1 to 0 and 0 to 1, constantly.
How should I go about doing this?

Thanks,
Henry

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited March 2012
    Rule:

    When attribute sef.color alpha =0, Interpolate self.color alpha to 1.

    New rule:
    When attribute self.color alpha = 1, Interpolate self.color alpha to 1.

    That should do it. You might want to trow in a timer so you get a nice little delay between each Interpolate.

    Edit: beaten by one minute! Dang!
  • App SurgeApp Surge Member Posts: 651
    Ah yeas, I had in that code but the actor never actually disappears, it goes to about .25 or so and then goes back to 1
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    All you would need to do is put in a timer..example

    When the alpha is 0, timer, after 0.5 seconds, run to completion, Interpolate to one. Do that for alpha 1 too.
  • CloudsClouds Member Posts: 1,599
    Here are two very simple ways.

    First one - flashing on and off:

    image


  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited March 2012
    @ Tynan

    Yep thats a very good way and i actually told him to do that in a email before he posted, but he wants a fade from the interpolate.

    @ Brandon, you wouldnt want run to completion checked. Then it could continue even if you turn the flash condition off. Without run to completion checked you can have an extra rule when the flash attribute is off and alpha is not 0,interpolate alpha to 1 so it cancels out whatever interpolate its on. But with run to completion checked it can overide all of it after the fact.
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    And a smooth in and out pulsing flash:

    image


    (The '100' is the speed of the fade up / fade down)
  • CloudsClouds Member Posts: 1,599
    but he wants a fade from the interpolate
    Yep ! I thought I would give him both a flashing (on/off) and a fading version - see my second post for the fading version.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    @ tynan ooo shiny new toy!
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Whoops, your right, John. Almost like an automatic for me, I just write it in there.. Sorry for the confusion. :)
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    @ tynan ooo shiny new toy!
    =P~
Sign In or Register to comment.