As of about 6.3, this can be done using nuke.rawArgs - e.g:

log = logging.getLogger()

if "-V" in nuke.rawArgs:
    log.setLevel(logging.DEBUG)


On 12/09/11 21:10, Ben Dickson wrote:
In case it's of use to anyone, you can access the "nuke -V" flag in a
slightly convoluted manner involving compiling a C Python extension
which exposes the DD::Image::plugin_verbose attribute,

https://github.com/dbr/nuke_misc_plugins/tree/b2670e108ca844630fafe054059291256a30664e/nuke_verbosity


I'm using this to increase the Python logging level to logging.DEBUG
when running nuke with the verbose flag.

Contacted support about exposing this as nuke.env['verbose'] last year,
and prodded it recently with this bit of code - ticket number is #10809

--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to