Thank's a lot Chadrik ! for the clarification. I'm matching the second case...
On 10 fév, 18:44, chadrik <[email protected]> wrote: > if your shelf button has the python function(s) placed directly into > its callback, then it should work without having to add: > > from pymel import * > > but if the button is calling a script that uses pymel, then you will > have to import it into that script. keep in mind that importing a > module that has already been imported will not slow python down. it > helps to divide this into two concepts: importing and loading. > essentially, "import" declares a dependency, and while you may import > a module many times, python is smart enough to only *load* that > dependency once. only the reload() function will cause the module to > actually be RE-loaded. > > -chad --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
