one thing I have always done is have a proc inside the mel file called
(thescriptname + "_sourceTest")
this is so I can handle not resourcing the same script over and over again

then you can run
if (!`exists (thescriptname + "_sourceTest")`)
{
if (`exists thescriptname`)
{
source (thescriptname.mel)
}
}

now this is only really a check to see if your script is sourced not what
global procedures exist
but if you know what procs are in what script you know that if the
_sourceTest proc exists then your other procedures in that script should
exist

if I am way off base for answering your question just let me know 8)

-Damon


> I am not aware of such a thing, and following the maya logic I don't think
> there is. Basically, Maya does the following. Try to execute myCommand, if
> it doesn't exists, it tries to find a procedure called called
> myCommand.mel,
> if it finds it it sources it, then run the command.
> So following this logic, Maya doesn't need to know what function are
> sourced
> or not ...
>
> my 2 cents logic :)
>
> On Mon, Mar 16, 2009 at 3:08 PM, Melvin3D <[email protected]> wrote:
>
>>
>> Yeah , I dont think there is a simpel way to list them ..
>> Global vars ..of course ..havent come across global proc.
>>
>>
>> On Mar 16, 2:54 pm, Paul Molodowitch <[email protected]> wrote:
>> > I'd LOVE to find out I'm wrong, but I don't think there is one (at
>> > least, not without a lot of time-consuming parsing of the script dirs
>> > / querying).  I remember hunting for one a while back, and was never
>> > able to come up with anything...
>> >
>> > - Paul
>> >
>> > On Mon, Mar 16, 2009 at 11:11 AM, Chadrik <[email protected]> wrote:
>> >
>> > > this is a MEL question, but i'm sure one of you knows the answer, if
>> > > there is one.
>> >
>> > > is there a way to list currently sourced global procedures?
>> >
>> > > -chad
>> >
>> >
>> >
>>
>
>
> --
> They say, "Evil prevails when good men fail to act." What they ought to
> say
> is, "Evil prevails."
> Nicolas Cage as Yuri Orlov in Lord of War.
>
> >
>



--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to