You can set an expression on dropdowns via Python:

nuke.selectedNode()['colorspace'].setExpression(
  "[if {[value root.proxy]} {return 2} else {return 1}]")

That sets the dropdown to 2 (sRGB) when in proxy mode, and 1 (linear) when not.

It's not the ideal as Nuke doesn't indicate the dropdown has an expression (no blue outline or something), and it can only be edited via Python or copypasting the node into a text editor - but, it seems to work as you want

On 25/04/16 11:25, Sebastian Kral wrote:
Good ideas. I was hoping to get around using custom nodes though. Too
bad that doesn't seem to be possible.

Thank you for taking the time.

Cheers,
Sebastian

On Friday, 22 April 2016, Igor Majdandzic <subscripti...@badgerfx.com
<mailto:subscripti...@badgerfx.com>> wrote:

    You could by
    nuke.root()['proxy'].value()

    Or you could put everything into a gizmo with a knob to enable
    (switch) between two reads.


    Grüße

    Am 22.04.2016 um 23:27 schrieb Hugo Léveillé:

        Maybe making a quick colorspace gizmo that detect proxy mode and
        you put it under your read

        Linear when in full mode and cineon2lin when in proxy

        Haven't checked if there is a way to detect proxy mode... Probably

        Sent from my iPhone

            On Apr 22, 2016, at 3:35 PM, Sebastian Kral
            <m...@sebastiankral.de> wrote:

            Hi,

            is there anyway to set the proxy colorspace to a different
            value than the non-proxy colorspace?
            We are thinking of using log jpgs but I would not want to
            set the default colorspace for 8-bit files to cineon via the
            project settings.

            We have a linear exr and a cineon jpg. Do you know a way to
            use these together in one read node?

            Any help is appreciated.

            Cheers,
            Sebastian


            --
            Sent from mobile device
            _______________________________________________
            Nuke-python mailing list
            Nuke-python@support.thefoundry.co.uk,
            http://forums.thefoundry.co.uk/
            http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

        _______________________________________________
        Nuke-python mailing list
        Nuke-python@support.thefoundry.co.uk,
        http://forums.thefoundry.co.uk/
        http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


    _______________________________________________
    Nuke-python mailing list
    Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
    http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



--
Sent from mobile device


_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to