Hi Hugh,

It looks to me that they've done away wit the Int and Double knob
subclasses in 6.3. I believe the only way to know would be to query
the flags for the knob but i don't see a way to do that. If you test
the type of the values of both of the knobs they both return floats so
that's no indication either. So no I don't think there is currently a
way to decipher between an int and float knob in Nuke at the present
time.

Josh

On Sat, Nov 5, 2011 at 7:55 PM, Hugh Macdonald
<[email protected]> wrote:
> Hi,
> I'm trying to interrogate a node to find out more details of what its knobs
> are... However, I'm currently finding that, for a number of different knob
> types, I'm just getting Array_Knob as the class...
> For example, try the following:
> n = nuke.createNode("EdgeBlur")
> print n['quality'].Class() # Should be Int_Knob, actually gives Array_Knob
> print n['edge_mult'].Class() # Should be Double_Knob, actually gives
> Array_Knob
>
> Is this a bug? And does anyone know how I can get at the actual type of
> these knobs...?
> Cheers
> Hugh Macdonald
> nvizible – VISUAL EFFECTS
>
> [email protected]
> +44(0) 20 3167 3860
> +44(0) 7773 764 708
>
> www.nvizible.com
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to