I think Simon was talking about the colour of the node, not the result of
the mix itself.

This might be what your after:

http://pastebin.com/4dyBTAnP



On 27 December 2011 05:27, Diogo Girondi <[email protected]> wrote:

> this.mix==1?0:1
> this.mix==1?1:0
>
> Just add the first line to the red channel and the second to the green
> channel. But if you need to "dissolve" between the values use:
>
> abs(-1+this.mix)
> this.mix
>
> For red and green respectively.
>
>
> On 26/12/2011, at 13:06, Simon Björk <[email protected]> wrote:
>
> Is there a way to add an expression to the color of a node? For example I
> have a node with a mix slider and want the color of the node to be green if
> the value is 1 and red if the value is 0. But I can't find a way to add an
> expression to this.
>
> --------------------------------
> Stiller Studios
> Lidingö/Sweden
>
> Simon Björk
> Stiller Studios
> +46 (0)8 555 23 560
> Ekholmsnäsvägen 40, S-181 41 Lidingö
> [email protected]
> www.stillerstudios.se
>
> find us:
> http://www.eniro.se/query?search_word=stiller+studios&geo_area=liding%F6&what=all
>
>
>  _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to