Hi
you can run through nuke.pluginPath and glob for *.gizmo...
(I dont have a nuke in front of me but sth like this)
foundGizmos = list()
for path in nuke.pluginPath:
foundGizmos += glob.glob(os.path.join(path,'*.gizmo'))
Then compare that to all node classes in the comp ?
Cheers
Johannes
Am 12/9/14 13:39 PM, schrieb Fredrik Averpil:
This check is part of a bigger validation process our nuke comps needs
to pass here before being sent off to the render farm.
I want to make sure no artists have installed any custom gizmos,
scripts etc outside of a certain network share location where it is
allowed. You initial suggestion kind of solves my problem, as I assume
artists won't touch the init.py or the menu.py.
However, it would have been nice to be able to list all plugins and
all gizmos, even the ones that was imported through init.py or menu.py.
Regards,
Fredrik
On Tue Dec 09 2014 at 1:14:04 PM Erwan Leroy <er...@erwanleroy.com
<mailto:er...@erwanleroy.com>> wrote:
Oh.. I've only ever used it on a script that gets run after nuke
is up and running. (To check what gizmos are actually used in the
scene, rather than what gets loaded from any of the init/menu.py).
Not sure what would be the answer to you at the moment. What are
you trying to achieve exactly?
Maybe looping through nuke.pluginPath(), listing any init.py or
menu.py in there and look into there for import statements?
(Sounds like a bad idea though)
On 9 Dec 2014 19:53, "Fredrik Averpil" <fredrik.aver...@gmail.com
<mailto:fredrik.aver...@gmail.com>> wrote:
Thanks Erwan,
This is nice. However, I notice the command does not return
any of the plugins / gizmos / scripts loaded from within init.py.
From init.py, I'm adding scripts and gizmos
using nuke.pluginAppendPath(). Should I load the plugins /
gizmos / scripts in a different way to be able to list them
using the nuke.plugins() command?
// Fredrik
On Tue Dec 09 2014 at 12:12:12 PM Erwan Leroy
<er...@erwanleroy.com <mailto:er...@erwanleroy.com>> wrote:
nuke.plugins(0,'*.gizmo')
On 9 Dec 2014 18:23, "Fredrik Averpil"
<fredrik.aver...@gmail.com
<mailto:fredrik.aver...@gmail.com>> wrote:
Hi,
I'm trying to figure out whether I can find the
location of all loaded plugins, scripts, gizmos from
within Nuke.
Any ideas?
Regards,
Fredrik
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
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
____ ESET 10847 (20141209) ____
The message was checked by ESET Mail Security.
--
STUDIO RAKETE GmbH
Johannes Hezer, Compositing TD & Stereoscopic SV
Schomburgstr. 120
D - 22767 Hamburg
j.he...@studiorakete.de
Tel:+49 (0)40 - 380 375 69 - 0
Fax:+49 (0)40 - 380 375 69 - 99
------------------------------------------------------
Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz:
STUDIO RAKETE GmbH
Schomburgstr. 120 D - 22767 Hamburg
www.studiorakete.de / i...@studiorakete.de
Geschaeftsfuehrer: Jana Bohl
Die Gesellschaft ist eingetragen im Handelregister des
Amtsgerichts Hamburg unter der Nummer HR B 95660
USt.-ID Nr.: DE 245787817
____ ESET 10849 (20141209) ____
The message was checked by ESET Mail Security.
_______________________________________________
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