Home Technical Talk

Find scripts in sub-folders ?

CreativeSheep
polycounter lvl 8
Offline / Send Message
CreativeSheep polycounter lvl 8
I have an environment variable set for my scripts (MEL) and the like for Maya. I was informed I could place the scripts in sub-folders for organization.  I did just that and the scripts won't run so Maya can't dig though sub-folders to find scripts.  Then I decided to put the absolute path of the script, along with the script name, that didn't work either ? 

Is it possible, or only with Python and I'm drawing blanks with MEL ?

Replies

  • Panupat
    Options
    Offline / Send Message
    Panupat polycounter lvl 15
    MEL is not that smart I'm afraid. You could do it 2 ways.

    - Include those directories in the env file
    - source it.

    I would say managing your mel script is only important for yourself. Once they're publish for the studio to use, no one would ever browse to the directory as artists would only call those scripts via shelf button.  At my studio we have just 3 or 4 script paths for our scripts and some of those directories contain 200+ mel scripts.
  • CreativeSheep
    Options
    Offline / Send Message
    CreativeSheep polycounter lvl 8
    Sorry, what do you mean by Source it ?
Sign In or Register to comment.