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> 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> 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> >> wrote: >> >>> nuke.plugins(0,'*.gizmo') >>> On 9 Dec 2014 18:23, "Fredrik Averpil" <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, 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 >>> >> >> _______________________________________________ >> 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 >> >> _______________________________________________ > 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 >
_______________________________________________ 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