Moritz Moeller wrote:
> I was wondering if Nuke supports scanning for plugins in ~.nuke/ and
> what the paths would be?
>
> E.g. you can install in:
>
> <platform prefix>/<Nuke version>/plugins/
> <platform prefix>/<Nuke version>/plugins-32/
>
> where <platform prefix> is e.g. "/Library/Application Support/Nuke/" on
> OSX or "/usr/local/Nuke/" on Linux and <Nuke version> is e.g. "6.3".
>
> This affects all users.
>
> So I was wondering if one could do a local, per user, install of plugins in:
>
> ~/.nuke/<Nuke version>/plugins
> ~/.nuke/<Nuke version>/plugins-32
>
> and have Nuke find them automagically?
>
> I could not find *any* documentation about this (incl. the global case)
> but I know the 1st way works.
you can do something like this in your ~/.nuke/init.py
import os
import nuke
path = os.path.expanduser('~/.nuke')
nuke.pluginAddPath(path+'/plugins/'+str(nuke.NUKE_VERSION_MAJOR)+str(nuke.NUKE_VERSION_MINOR))
nuke.pluginAddPath(path+'/gizmos')
nuke.pluginAddPath(path+'/python') #for generic python scripts
nuke.pluginAddPath(path+'/python/'+str(nuke.NUKE_VERSION_MAJOR)+str(nuke.NUKE_VERSION_MINOR))
#for version specific scripts
then you make the directories ~/plugins/62 ~/plugins/63, etc.
If you need to be platform aware (windows, OSX, Linux) this should be
factored in too probably using the python platform module or similar.
It would be nice if something similar was built in by the Foundry,
Kevin
--
| Kevin Wheatley, Cinesite (Europe) Ltd | Nobody thinks this |
| Head of Software Engineering | My employer for certain |
| ( and Colour Management, ... ) | Not even myself |
Cinesite (Europe) Ltd. Registered Office: HemelOne, Boundary Way, Hemel
Hempstead, Herts, HP2 7YU Registered in Cardiff No. 2820389 VAT No. 630 5446 60
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users