Adverti horiz upsell

mSetProject 2.0.2 for Maya (maya script)

Automatically Set Project before opening a scene

License
Button download
1,313 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

mSetProject
------------------------------------------------------------
www.skymill.co.jp


This is a simple Python script we use in our pipeline to automatically set Projects, ala Softimage.
You don't need to re open the scene, reload textures or enter your project folder path.
It's all automatic as long as you are keeping maya's workspace.mel file.

In previous versions it set the project after the file has been opened, causing the texture paths to be absolute. A workaround to fix texture paths after the file was opened was added but it didn't work well with referenced files. It now works as intended, sets the project and opens your file and doesn't change anything in the opened file.


------------------------------------------------------------
COMPATIBILITY
------------------------------------------------------------
It's been tested on Maya 2013, 2014, 2015, 2016 and 2016.5.
It should be compatible with 2011 and 2012 but hasn't been tested.
Since it uses now OpenMaya, it won't work with versions older than 2011.

------------------------------------------------------------

WHAT'S NEW
------------------------------------------------------------
2.0.0 It's been rewritten from scratch. It now set the project before opening a file and works with referenced files. The install command has been removed because it doesn't seem to work in some environments.
2.0.1 Added support for Japanese Characters. Changed the viewport message mode in 2014.
2.0.2 Fixed bug where it reOpens the scene if Maya finds errors in the Scene.


------------------------------------------------------------
WHAT IT DOES
------------------------------------------------------------
It Automatically sets up your project folder when a scene is opened.

It looks for a [workspace.mel] file inside your folder, and 10 folders above by default. If it finds one, it will set the project to that folder automatically (without asking). It will display your project folder path in your viewport.

It won't set project when you save a new file like Softimage does.


------------------------------------------------------------
INSTALL
------------------------------------------------------------

To install from scratch:

You will find 2 files inside the zip file.
mSetProject.py
userSetup.py

Copy mSetProject.py to your scripts folder

ex: C:\Users\myara\Documents\maya\scripts

And copy userSetup.py to the same scripts folder if you don't have already a userSetup.py.
If you have already a userSetup.py file, you will need to edit it and add the following lines:

import mSetProject
mSetProject.main()

Restart Maya

---

If you've been using mSetProject 1.x you will need to uninstall it.

Search for these lines in your userSetup.py:

import maya.cmds as m 
import mSetProject 
reload (mSetProject) 
m.scriptJob( event=("SceneOpened", "mSetProject.mSetProject()") )

Delete them and add the following commands:

import mSetProject
mSetProject.main(


------------------------------------------------------------
UNINSTALL
------------------------------------------------------------
Delete mSetProject.py

And delete the following lines from your userSetup.py

import mSetProject
mSetProject.main()



Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • magix1066
    magix1066
  • GenX
    GenX
  • Miguel A Santiago Jr.
    Miguel A Santiago Jr.
  • Vojtech Lacina
    Vojtech Lacina
  • RobC
    RobC
  • 鹏
  • danimanfx
    danimanfx
  • kayo003
    kayo003