Sounds like you're missing an import statement, or you're not calling
the panel with a fully qualified name.
 Where are you defining your dialog class? Directly in your menu.py,
or in a separate file/module?



On Tue, Aug 16, 2011 at 8:57 AM, Albert Rizov <[email protected]> wrote:
> Hi, Ivan
> It's working if I executed this script from scripteditor, but it did not
> work if I executed script from nuke menu. I get a error "name 'serverDialog'
> is not defined". Do you have any more ideas?
>
> Thanks
>
>> It's most likely still executing the knobChanged that triggered the
>> creation of the second panel.
>> Depending on what you need to do with that second panel, the easier
>> way to get around it may be to move what you have in knobChanged onto
>> the button knob itself.
>>
>> So, from your example, you would remove the knobChanged method of your
>> panel, and define your knob button like this:
>>
>>         self._clientsListAdd = nuke.PyScript_Knob("...", "...",
>> "serverDialog().showModalDialog()")
>>
>> Hope that helps.
>>
>> Cheers,
>> Ivan
>
> _______________________________________________
> 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