Re: [Nuke-python] knobCallback on file open

2013-02-11 Thread Arno Beekman
That is really nice Luca! Exactly what I was looking for :)) great, thanks a lot! cheers Arno On 30 jan 2013, at 10:40, Luca Fiorentini wrote: > on a second thought with this you don´t overwrite the name of the controls > all the time so you will be able to query them later on > > [CODE] > cl

Re: [Nuke-python] knobCallback on file open

2013-02-02 Thread ArnoB
That is really nice Luca! Exactly what I was looking for :)) great, thanks a lot! cheers Arno On 30 jan 2013, at 10:40, Luca Fiorentini wrote: > on a second thought with this you don´t overwrite the name of the controls > all the time so you will be able to query them later on > > [CODE] > c

Re: [Nuke-python] knobCallback on file open

2013-01-30 Thread Luca Fiorentini
on a second thought with this you don´t overwrite the name of the controls all the time so you will be able to query them later on [CODE] class Main( nukescripts.PythonPanel): def __init__( self ): self.myList = [] nukescripts.PythonPanel.__init__( self, 'select file...', 'my.

Re: [Nuke-python] knobCallback on file open

2013-01-30 Thread Luca Fiorentini
Sorry I completely misunderstood your question :) I think you should use a python panel and inherit his class (nukescript.PythonPanel). I wrote a quick snippet that should help you start. There are some problems (like the filename searches are appearing under the ok buttons or if you change and exi

Re: [Nuke-python] knobCallback on file open

2013-01-29 Thread ArnoB
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.Pan

Re: [Nuke-python] knobCallback on file open

2013-01-29 Thread Luca Fiorentini
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 wrote: > hello, > > I'd like to change the contents of a Panel according to the > name of a file that'

[Nuke-python] knobCallback on file open

2013-01-28 Thread ArnoB
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