Adverti horiz upsell

mSetProject 2.0.2 for Maya (maya script)

Automatically Set Project before opening a scene

License
Button download
1,351 Downloads

Reviews

Rating: 4.8
(6)

Compatibility

  • 2016, 2015, 2014, 2013

Operating Systems

  • Windows

History

Created:10/20/2014
Last Modified:10/13/2016
File Size: 1.96 KB

Keywords

maya, set, automatic

Q/A

Help for error message!

Date:12/03/2014
Submitted by: danimanfx danimanfx
Hi,

Thank you for the script. The problem is that it is not working for me :(
 C:/Users/Big/Documents/maya/2015-x64/scripts\mSetProject.py line 122: global name 'path2' is not defined #  

I am pretty sure i did not do something right, I am beginner!  Can ayone help me please? 

Replies to this question:

  • myara

    myara said almost 10 years ago:

    I'm sorry for the delay of my replay and the inconveniences you may have had. This is a bug, an error that appears when mSetProject can't find a workspace.mel file. It was already fixed in the last 1.0.3 version. Please download it and overwrite your old mSetProject.py file. The expected behavior is to pop up a window to allow you to choose your project folder.
  • danimanfx

    danimanfx said almost 10 years ago:

    Thank you for your reply; I put the new file C:\Users\Big\Documents\maya\2015-x64\scripts\mSetProject.py. I executed: #Python import mSetProject; mSetProject.mSetProject_Setup( True ) in phyton tab and got a Maya crash to desktop every time I tried this;
  • myara

    myara said almost 10 years ago:

    If you have already installed mSetProject, you don't need to do anything but to copy the new mSetProject.py file into your scripts folder. Although you can uninstall it and install it again, you don't need to. Still, I haven't been able to reproduce your problem here. But I haven't tried 2015 yet though. I'll see if I can try it soon. If you are still having trouble with this, upload your userSetup.py somewhere I can download it and I'll check it out.
  • Anttropos

    Anttropos said almost 10 years ago:

    Hi, thank you for the script. But i have one problem. Script is not run when maya started. File userSetup.py was created successfully. But when I close and reopen Maya, script not working. If i run in python tab in scripteditor code frome userSetup.py import maya.cmds as m import mSetProject reload (mSetProject) m.scriptJob( event=("SceneOpened", "mSetProject.mSetProject()") ) script works fun.
  • Replyindent
    myara

    myara said almost 10 years ago:

    What language is your Windows ? It seems that the installer (creating the userSetup.py file) doesn't work well in some environments. You can create manually a userSetup.py file in your scripts folder and add the lines below so it will automatically run after an scene has been opened: import maya.cmds as m import mSetProject reload (mSetProject) m.scriptJob( event=("SceneOpened", "mSetProject.mSetProject()") )

Post a reply: