superduper10000
05-03-2007, 02:03 AM
Suppose you have a script in your maya user directory called "myMel.mel"
It looks like:
global proc myMel()
{
print "Hello to Me \n";
}
global proc yourMel()
{
print "Hello to you \n";
}
Typically both functions myMel and yourMel will be accesible in memory after starup.
However, I have a more complicated (long) file where only the function with the file name gets sourced -- none of the other functions in the file get sourced. Sourcing this file manually from maya loads all functions into memory. I can't see anything that should be different from this simple example... anyone know what might make a difference for selective sourcing like this?
It looks like:
global proc myMel()
{
print "Hello to Me \n";
}
global proc yourMel()
{
print "Hello to you \n";
}
Typically both functions myMel and yourMel will be accesible in memory after starup.
However, I have a more complicated (long) file where only the function with the file name gets sourced -- none of the other functions in the file get sourced. Sourcing this file manually from maya loads all functions into memory. I can't see anything that should be different from this simple example... anyone know what might make a difference for selective sourcing like this?
