Thanks a lot for your help Diogo. I tried that code but couldn't figure out
how to use it. I solved the problem with python callbacks (and with some
code you posted a few moths ago).


2011/12/27 Diogo Girondi <[email protected]>

> Ahhh!
>
> Well there is a simpler (less reliable) way that works and doesn't take
> you the callback which is using a standard if then else in TCL using the
> node's label.
>
> Pseudo code with missing everything (because I can't test this right now
> and TCL is fading in my brain)
>
> [if {[value knob]==something} then {return "knob tile_color 1 0 0} else
> {return "knob tile_color 0 1 0"}]
>
> Cheers,
> Diogo
>
> On 27/12/2011, at 07:51, matt estela <[email protected]> wrote:
>
> heh, i just stumbled across the code, i didn't write it, nor do i have
> nuke at home to test it. :)
>
>
> On 27 December 2011 10:13, Simon Björk <[email protected]> wrote:
>
>> Yes, I'm talking of the actual color of the node. I have a script where I
>> have a lot of elements fading in at different time and it would be very
>> easy to visually see if they are enabled by just looking at the color of
>> the nodes.
>>
>> Matt, the method in the link you posted doesn't seem to work, nothing
>> happens when I change the value of the checkboxes.
>>
>>
>>
>> 2011/12/26 matt estela <[email protected]>
>>
>>> 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
>>>
>>
>>
>>
>>  --
>> --------------------------------
>> 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
>



-- 
--------------------------------
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

Reply via email to