Hey Luca,
thanks for your reply.
unfortunately that's not what I'm looking for.
I have this:
import nuke
class Main():
def __init__( self ):
self.Panel = nuke.Panel( "select file..." )
self.Panel.addFilenameSearch( 'file01', '/' )
self.Panel.show()
def knobChanged( self, knob ):
self.Panel.addFilenameSearch( 'file02', '/' )
refresh.Panel()
Main()
I'd like to add a new FilenameSearch line to the Panel
when a file is select and its path shows up in the path field.
I found this piece of code:
http://www.mail-archive.com/[email protected]/msg01821.html
which seems to be doing something similar, EXCEPT
that I like it to respond to the "open" button that shows up in the
filesystemwindow...
arno
On 29 jan 2013, at 09:09, Luca Fiorentini wrote:
> In the project settings there is a tab called "Python" with three fields:
>
> onScriptLoad, onScriptSave and onScriptClose.
>
> Is it what you are looking for?
>
> On Tue, Jan 29, 2013 at 12:30 AM, ArnoB <[email protected]> wrote:
> hello,
>
> I'd like to change the contents of a Panel according to the
> name of a file that's chosen by the user.
> Is it possible have a callback on the "Open" button of a
> nuke.addFilenameSearch command?
>
> Maybe I'm searching in the wrong direction and there's
> another way to update the Panel by clicking the Open
> button after selecting a file...?
>
>
> thanks in advance
>
> Arno
>
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
>
> --
> Luca Fiorentini - 3D Lighting Artist
> My Showreel - My blog - My Flickr
> _______________________________________________
> 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