Re: [Maya-Python] couple of userSetup file questions.

2017-09-11 Thread Marcus Ottosson
No problem, happy to help. :) On 12 September 2017 at 06:44, jettam wrote: > YES!!! Thank you so much Marcus. I have been tying to solve this one on > and off for the past 48 hours. I was about to give up on it for the night, > then your reply turned up :) > > > On Monday, September 11, 2017 at

Re: [Maya-Python] couple of userSetup file questions.

2017-09-11 Thread jettam
YES!!! Thank you so much Marcus. I have been tying to solve this one on and off for the past 48 hours. I was about to give up on it for the night, then your reply turned up :) On Monday, September 11, 2017 at 10:35:17 PM UTC-7, Marcus Ottosson wrote: > > @robert, thanks for that info, goldmin

Re: [Maya-Python] couple of userSetup file questions.

2017-09-11 Thread Marcus Ottosson
@robert, thanks for that info, goldmine! @jettam If that comment is present in your userSetup.py then you’ve got a syntax error and the import would not happen. Try using a # instead of a // // PYTHON CONVENIENCE TOOLfrom see import see # PYTHON CONVENIENCE TOOLfrom see import see ​ On 12 Sept

Re: [Maya-Python] couple of userSetup file questions.

2017-09-11 Thread Robert White
If you're interested in seeing how maya handles `userSetup.py`, the code exists here on windows (no clue on other platforms, but probably a similar location): `c:\Program Files\Autodesk\Maya2018\Python\Lib\site-packages\maya\app\startup\basic.py` One extra thing, if you set the `MAYA_SKIP_USERS

Re: [Maya-Python] couple of userSetup file questions.

2017-09-11 Thread Robert White
Maya will exec every single `userSetup.py` files that it finds on `sys.path` during startup, into the `__main__` namespace, the GUI won't exist yet, so any modifications you want to make to the interface need to be wrapped in a function that is passed to `maya.utils.executeDeffered` which will

Re: [Maya-Python] couple of userSetup file questions.

2017-09-11 Thread Justin Israel
On Tue, Sep 12, 2017 at 11:01 AM jettam wrote: > Q1 .. Is it okay for Maya (2017) to load two userSetup files upon launch, > a .mel version and a .py version? > > > Q2. I am trying to get maya to auto load my 'see' module upon launch. So I > add this code to my userSetup.py Unfortunately this do

[Maya-Python] couple of userSetup file questions.

2017-09-11 Thread jettam
Q1 .. Is it okay for Maya (2017) to load two userSetup files upon launch, a .mel version and a .py version? Q2. I am trying to get maya to auto load my 'see' module upon launch. So I add this code to my userSetup.py Unfortunately this doesnt work. Could someone tell me what I am missing in t