I always wanted to know how to do that too, would be nice to be able to add
knob in the main tab. As I noticed sometimes the users don't look for the
knobs under that 'user' tab on certain custom nodes.
but, not directly answering your question, I do this:
"""
FrameHold Current Frame
"""
def currentFrameHold():
x = nuke.frame()
nuke.knobDefault("FrameHold.first_frame", "int(x)")
nuke.createNode("FrameHold")['first_frame'].clearAnimated()
and then replace the one in ('Nodes') menu on ('Time/FrameHold') to call
the currentFrameHold(), therefore everytime when the user create a
FrameHold node, it's always on the current frame, no button fanciness and
less 'clicking'.
On Sat, Apr 28, 2012 at 2:35 AM, jedypod <[email protected]
> wrote:
> **
> Is it possible yet to create a knob and add it to a node in the main tab?
> That is, without creating a "user" tab and putting the custom knob in there?
>
> It would be nice to be able to do this for simple customization of nodes.
> For example, I am trying to make a button in the FrameHold node that sets
> the value to the current frame, that is in the main FrameHold tab, not in a
> separate user tab.
>
> [image: Smile]
>
> _______________________________________________
> 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