Hey everyone, Stupid easy, but I can't get it to work I'm trying to import maya.cmds as maya USING the userSetup.py file. I'm in the right file path {C:\Documents and Settings\<username>\My Documents\maya\2016\scripts}, but it won't load when maya opens up (tried maya.ls(sl = True)) Can anyone help?
Yes, I know it's super simple but I can't seem to get it to load on (or delayed) maya startup. I want to load maya.cmds as maya.. Tried just about everything but it doesn't want to work..
If you want to execute something after the UI loads and other maya startups, you can wrap it in evalDeffered (http://help.autodesk.com/cloudhelp/2017/ENU/Maya-Tech-Docs/CommandsPython/evalDeferred.html)