Fade out

Discussion in 'PangoScript, Universe and Midi Templates' started by JonAndrews, Feb 3, 2016.

  1. JonAndrews

    JonAndrews New Member

    I'm trying to create a Universe button that will fade out or fade in (brightness change) over a set time. The idea is to hit a button and the projectors will fade out/in gently.

    I've seen a mention of

    AnimateProp "", 0,100,1000 // "variable", From, To, Duration MS

    But i'm not sure if this is correct or how to use this.

    Any help would be great.

  2. hitekvoop

    hitekvoop Well-Known Member

    AnimateProp will work, but you need to put the object whose property you're trying to animate in between the quotes.

    For example: if the master brightness is controlled by Master.Brightness (i don't have beyond handy, so I'm just using this example) then:

    AnimateProp "Master.Brightness", 0, 100, 1000

    Would fade from 0-100 over 1 second. Do note, however, that if you press this while the brightness is all the way up it will go back to zero and fade up. What you may like better is:

    AnimatePropDelta "Master.Brightness", 100, 1000
    AnimatePropDelta "Master.Brightness", -100, 1000

    These will simply add or subtract 100 (over 1 second) from the current Master.Brightness value.

    Good luck!

    Last edited: Feb 3, 2016
  3. JonAndrews

    JonAndrews New Member

    Nice one Rick. It works a treat.

    Anyone copying Rick's syntax - don't forget the comma as below.

    AnimatePropDelta "Master.Brightness", 100,1000

  4. hitekvoop

    hitekvoop Well-Known Member

    Ah, right! Good lookin out. I'll edit my original reply to reflect correct syntax.