mimic
Posts: 1
Joined: Sat May 23, 2020 1:02 pm

External code entries not saved

Hi,

I've noticed that whenever I restart Maya, all my entries in the "External Code" tab are gone.
Is there any way to fix this?

Thank you a lot for your help!

Enrico
louisVottero
Site Admin
Posts: 202
Joined: Sat Aug 29, 2015 8:50 am

Re: External code entries not saved

I think I want to faze out external code.

The correct way to make sure paths are available to your code is to set the PYTHONPATH in maya or in your computer's environment variables

check the documentation here:
https://knowledge.autodesk.com/support/ ... 0-htm.html
Adding items to your Python path
To add items to your path in Python, do one of the following:

Set PYTHONPATH in your Maya.env file, or in your environment before you run Maya
Append to sys.path in your userSetup.py or other script once Maya is running.
Here is an example of appending sys.path

import sys sys.path.append( '/Users/jdoe/maya/Scripts' )
Note: userSetup.py must be located in the initial python path ( sys.path) in order to be run automatically at startup. The default Python path can be added to by setting the environment variable PYTHONPATH.
This will do a better job at making sure python packages are available to code run in Vetala than External Code does.

Return to “Bugs”