Environment Variables Setup Frustrations

Environment Variables Setup Frustrations

FalconCrest
Advisor Advisor
8,637 Views
40 Replies
Message 1 of 41

Environment Variables Setup Frustrations

FalconCrest
Advisor
Advisor

I can't run any third party script without the error "cannot find procedure".  My Maya Environment variable points to a path where my scripts, icons even presets should be placed.  When I place any scripts in the scripts path, then try to run those scripts I get the error ?

 

 

0 Likes
Accepted solutions (1)
8,638 Views
40 Replies
Replies (40)
Message 21 of 41

Anonymous
Not applicable

Hi again Falcon

 

I downloaded the script and placed all the files in the folders that were described in the installation instructions, and everything worked fine for me. So there is nothing wrong with the script.

 

From looking back over your old posts, it seems that you may have missed the MAYA_PLUG_IN_PATH variable from your Maya.env file. Make sure this points to the folder in which you placed the plug-in.

 

Also, make sure you are using the correct version of the .mll file (There is a .mll file compiled for each version of Maya) and you will need to point your MAYA_PLUG_IN_PATH to the correct one for your version of Maya.

 

As a test I created a folder on the root of my C:\ drive called MyTestFolder and placed all of the files in sub folders in there (See the attached inamge). Then I created a Maya.env file in the prefs folder and added these lines to it:

 

MAYA_SCRIPT_PATH=C:\MyTestFolder\scripts\
MAYA_PLUG_IN_PATH=C:\MyTestFolder\plug-ins\2014-x64\
XBMLANGPATH=C:\MyTestFolder\icons\

 

Then I restarted Maya and ran the command

 

SHAPESBrushUI

 

And the tool popped up with no errors.

 

So in summary, it looks to me like you are missing the MAYA_PLUG_IN_PATH variable or you may be trying to load the wrong version of the mll file.

 

Finally if this still isn't working, can you copy the contents of your script window after starting Maya and trying to run the tool and paste it up here.

 

Thanks

 

Mike

0 Likes
Message 22 of 41

FalconCrest
Advisor
Advisor
I was informed I can append the MAYA_PLUG_IN_PATH with two paths; I'm appending the actual MAYA_PLUG_IN_PATH with the redshift render, if you need more information, let me know.

MAYA_PLUG_IN_PATH = %REDSHIFT_PLUG_IN_PATH%;C:\Custom Program Settings\Maya_Resources\plugins
0 Likes
Message 23 of 41

Anonymous
Not applicable

Um, yeah you can append as many paths as you need...but I'm a little confused. Are you saying you are still not able to get the script to work?

0 Likes
Message 24 of 41

FalconCrest
Advisor
Advisor
Yes, the path you saw in the previous post points to a folder which contains the MLL file, Maya is not reading the path to load the MLL file so I can start the script !
0 Likes
Message 25 of 41

Anonymous
Not applicable

OK, can you do the following:

 

1) Restart Maya

2) Type this into the script window:

 

    getenv MAYA_PLUG_IN_PATH;

    SHAPESBrushUI;

 

3) Copy the entire contents of the script window output and paste it into a new text file. Then attach that text file to this post so I can see the actual script output.

 

Mike

0 Likes
Message 26 of 41

FalconCrest
Advisor
Advisor

I have attached the text file with the script output contents. Add the .txt extension to the file.

 

 

0 Likes
Message 27 of 41

Steve_Curley
Mentor
Mentor
No file - try again, and if it still won't attach, zip it first.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 28 of 41

FalconCrest
Advisor
Advisor

Here is the link to the file.

0 Likes
Message 29 of 41

Anonymous
Not applicable

Hi the website you linked to is blocked by my browser saying it is unsafe.

 

Can you just paste the contents of the text file as a post instead? I just figured you'd be able to attach it easily.

0 Likes
Message 30 of 41

Steve_Curley
Mentor
Mentor
Not sure why you seem to be unable to attach that - it's a tiny file, both .txt and .zip files should attach without any problems.
Click Browse, select the file, submit the post. Don't click "Add Attachment" unless you intend to attach a 2nd file.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 31 of 41

FalconCrest
Advisor
Advisor

I decided to use another service at the time, I was unaware that Michael wouldn't be able to go to the site. The link to the file is in Steve post if you didn't get Steve post by this time!

0 Likes
Message 32 of 41

FalconCrest
Advisor
Advisor
Steve - You have two handles of the same name, I can't send you a personal message !
0 Likes
Message 33 of 41

Steve_Curley
Mentor
Mentor
Sure you can. Click my name to the left of any of my posts, click "send this user a private message" on the right.
Click "Send Message". You'll get a warning about "ambiguous names" and will be presented with the 2 users. One doesn't say Moderator and has 0 posts and no Avatar, the other does say Moderator, has an Avatar and has 18900+ posts. Click the checkbox by the second one then click Send Message again. It works, I've had to do that many times.
I know it's annoying, but I've tried to have that old account removed, but they won't do it - nothing more I can do about it.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 34 of 41

FalconCrest
Advisor
Advisor
Now it worked, it wouldn't send the message :20 minutes ago !
0 Likes
Message 35 of 41

FalconCrest
Advisor
Advisor
Did you get the text file ?
0 Likes
Message 36 of 41

Anonymous
Not applicable

Hi

 

Yeah sorry, been away for a couple of days.

 

OK so TBH that isn't helping me much afterall. I was hoping to see the entire script window output to see if there had been any errors reported when you started Maya.

 

The MAYA_PLUG_IN_PATH looks clean though and seems to contain the correct folders.

 

As you say the error being reported is related to not being able to find the procedure and is not related to a missing plugin or error in the script itself.

 

Based on this and everything you have said in your previous posts, it should all be working assuming you have all the correct files in the correct folders, and so I'm not really sure why it wouldn't work.

 

May I ask why you don't just copy the files into the default locations as suggested by the script's author? It'll almost certainly work that way (Worked first time for me) and should save a lot of hassle?

 

i.e.

 

Copy scripts to:

..\My Documents\maya\2015-x64\scripts\

 

Copy plug-in to:

..\My Documents\maya\2015-x64\plug-ins\

 

Copy Icons to:

..\My Documents\maya\2015-x64\prefs\icons\

 

 

 

Regards

 

Mike

0 Likes
Message 37 of 41

FalconCrest
Advisor
Advisor
When I upgrade Maya I'll have to manually re-install the script, instead of the environment variable doing this automatically. The author of the script suggested I install the scripts in the default path; he also mentioned it does work in a environment variable ?
0 Likes
Message 38 of 41

FalconCrest
Advisor
Advisor
Accepted solution
The author of the tool has informed me nothing is wrong with his script; and the rest is Autodesk fault, but when the files are placed in the default locations the script doesn't run either ?

My environment variables are setup correctly, my guess is, his script needs to be checked and there is something wrong with the script but he denies there is anything wrong. How am I suppose to get this to work if everything is setup correctly on my end, but the author of the plugin denies anything can be wrong with his end ? Other scripts I have run perfect, except this script !
0 Likes
Message 39 of 41

Anonymous
Not applicable

Honestly, I don't know why you are having the issue. It looks like there may be something wrong with your installation somewhere along the line, but without actually having access to the machine I wouldn't know where to begin.

 

You could always try a fresh install of Maya and remove any custom environment variables yo umay have created, but I know thats not a very practical solution.

 

One thing that will probably work, but is a big hack, is to open the script file in a text editor, copy the whole lot, paste it into your script window and then create a shelf button from it. If you also add SHAPESBrushUI; to the end of the script it will automatically run itself each time you press the shelf button too.

 

Mike

0 Likes
Message 40 of 41

bonelessevil
Explorer
Explorer

noob here...I have a related question and since this post was already there, I decided to write here.  

 

I just loaded Maya 2016 and would like to consolidate all my scripts in a general place.  Upon installation, 2016 expectedly loaded folders under C:\Users\Jon\Documents\maya.  However, I use a different drive for all documents.  How do I set up Maya.env to do the following:

 

- place all maya related scripts, plugins, icons, etc. under G:\Jon\Documents\maya   (in their own folders)  

 

by the way, do plugins have to go under E:\Program Files\Autodesk\Maya2016\plug-ins?  Second, if a script calls for it's location to go into the G:\Jon\Documents\maya\4.0 folder, as one of mine does, can I ignore that or put that address in the path?

 

lastly, I would love to know how pros organize all their storage for Maya. mine is ok, but messy still lol

0 Likes