Foreground Animation

Dear Experts,

I have a object Rectangle, this object will changing the foreground colors base on 2 input that are "Run/Stop" and "Trip/Normal".

If only 1 input, I can use animation foreground and manipulate the colors base on Exact match. I get difficulties to manipulate the data if there are 2 input.

Please advice...

Thank for your great support

Best regards,

Peki Hariyanto

4 Replies

  • Assuming that Run/Stop is 1/0 and Trip/Normal also 1/0, you could used the expression (Run/Stop + 2 * Trip/Normal). Thus you get values from 0..3. Then you can use Exact match to get coloring.
  • Hi,
    You may consider using two rectangles overlapping each other and make them visible/invisible based on the trip status. For example the run/stop rectangle is visible when trip status is normal and as soon as the trip status is active the run/stop rectangle will be invisible and the trip/normal rectangle will show up to display respective colors.

    Having said that I am also in agreement with Maarten's suggestion of adding two signals to get multiple numerical values for animation. Above suggestion is an alternate approach to achieve the desired animation.
  • In reply to Maarten van der Waal:

    It's work with using above expression, thanks maarten for your great support.
  • In reply to girishbm1:

    Hi giris, thanks for your kind help. I have tried and it's work fine.
    Very appreciated it...