I've tried this in the menu.py, but it has an error. I've even plugged
in a dummy Python script that only prints a simple message, so I don't
think that it's my code. Maybe I'm still overlooking something, but I
get the following error:

Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File 
"/Applications/Nuke6.2v4/Nuke6.2v4.app/Contents/MacOS/plugins/nuke/callbacks.py",
line 84, in addOnScriptSave
    _addCallback(onScriptSaves, call, args, kwargs, nodeClass)
  File 
"/Applications/Nuke6.2v4/Nuke6.2v4.app/Contents/MacOS/plugins/nuke/callbacks.py",
line 14, in _addCallback
    raise ValueError("call must be a callable")
ValueError: call must be a callable


On Tue, Jul 19, 2011 at 1:07 PM, Deke Kincaid <[email protected]> wrote:
> something like this in your init/menu.py:
> nuke.addOnScriptLoad(pythonScriptFunction)
> -deke
> On Tue, Jul 19, 2011 at 13:01, Dan Rosen <[email protected]> wrote:
>>
>> I'd like to set the Project Settings > Python field for onScriptLoad
>> at load time via menu.py or init.py. I understand that I can stick
>> this into a template.nk script and that it will be there every time I
>> load Nuke, but I want to put something in that field for existing
>> scripts that don't have it. Any ideas?
>>
>> Thanks,
>> Dan
>> _______________________________________________
>> 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