thanks for the response frank,

i've gone for the method of adding a new 'help' tab to all custom user
created nodes with a pyscript button that opens up the web browser to
the corresponding wiki entry. that seemed to be the easiest and most
robust way. still not too sure what the Help_Knob is for then, looks
legacy to me. haha

cheers,
josh

On Sun, Jun 3, 2012 at 9:26 AM, Frank Rueter <[email protected]> wrote:
> You can edit the help knob by simply setting it's string:
> node['help'].setValue( 'this is how to use this gizmo...' )
>
> Or in the group's UI: right click > Edit Help
>
> I'm not sure what the actual Help_Knob object is (the above mentioned knob
> is actually a EvalString_Knob).
>
> I remember a feature request from D2Software days to mimic a Shake feature
> which would allow you to dynamically link nodes' help to a url. It would be
> great to have an easy mechanism for this.
>
> The help knob is pretty useless for what you're after though, as it won't
> allow you to click on it's text.
> Your best bet is to add a right click menu item to all nodes' properties
> panel and call a function that grabs the node's class and builds a url, then
> opens it:
>
>
> def loadWiki():
>
> node = nuke.selectedNode()
>
> nodeClass = node.Class()
>
> url = 'www.myWiki/%s' % nodeClass
>
> print 'opening', url
>
> nuke.tcl('start %s') % url
>
> nuke.menu('Properties').addCommand( 'Open Wiki page', loadWiki )
>
>
>
> I used the tcl command to open a url as nukescripts.start() doesn't seem to
> do anything (might be a bug).
>
> Cheers,
> frank
>
>
>
>
> On 1/06/12 9:16 PM, Josh Imbruglia wrote:
>
> hi everybody,
>
> just wondering if anyone knows of a best practice for adding a help to
> all custom gizmos. I want to be able to link them to our wiki page for
> a quick reference for new artists.
>
> so a couple questions i have are:
>
> what is the Help_Knob, is this what i want? it doesn't appear to
> serialize so how does one use it? is it possible to setup an onCreate
> callback that will add the Help_Knob dynamically for any custom gizmo?
>
> that begs me to ask, is there a way to detect if a node is an internal
> Nuke one vs. a custom implementation?
>
> any ideas or thought would be more then welcome.
>
> cheers,
> josh
> _______________________________________________
> 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
>
_______________________________________________
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