
Requires Python2.6 onwards
Hello, This article is regarding the python script I have written for Autodesk Maya. The script allows the user to set imageplane with just few clicks.
I have written few python scripts before but this is the first time I have written for maya, what I mean this is the first time I have used the maya.cmds and maya.mel modules. So this has been more of a learning (personal)project for me. The Idea to work on this project came up after I decided to go over some 3d tutorials, well I wanted to start off with setting the image plane, so Dan suggested me some tutorials to start up hard surface modeling in 3D and some to setup image plane.
I thought of why not do it in pythonic way, now its a habit and my style !!!
Pre-Requisitte:
Autodesk Maya 2010, 2011, Maya 2012 or Maya 2013
How to use
save the file where you store your all other maya scripts
E:\Users\<username>\Documents\maya\<2012>\scripts
Then open a python tab(Not MEL tab) in Maya script editor and paste this code
try:
reload(setimgpln)
except NameError:
import setimgpln
IMP: then select the code and with mouse middle-click Drag & Drop on the shelf tab
choose python when\if prompted to be Mel or Python
Why 4 lines of code to load ?
Because its a python script moreover it utilizes the same code for toggle, and in python if you import once the you need to reload for new import of the same module/script.
I have written few python scripts before but this is the first time I have written for maya, what I mean this is the first time I have used the maya.cmds and maya.mel modules. So this has been more of a learning (personal)project for me. The Idea to work on this project came up after I decided to go over some 3d tutorials, well I wanted to start off with setting the image plane, so Dan suggested me some tutorials to start up hard surface modeling in 3D and some to setup image plane.
I thought of why not do it in pythonic way, now its a habit and my style !!!
Pre-Requisitte:
Autodesk Maya 2010, 2011, Maya 2012 or Maya 2013
How to use
save the file where you store your all other maya scripts
E:\Users\<username>\Documents\maya\<2012>\scripts
Then open a python tab(Not MEL tab) in Maya script editor and paste this code
try:
reload(setimgpln)
except NameError:
import setimgpln
IMP: then select the code and with mouse middle-click Drag & Drop on the shelf tab
choose python when\if prompted to be Mel or Python
Why 4 lines of code to load ?
Because its a python script moreover it utilizes the same code for toggle, and in python if you import once the you need to reload for new import of the same module/script.
Advantage of this Python script: It makes use if the project is set it will directly open the sourceimages folder or else scene folder or if you have my autoSetProj.mel installed in your scripts directory it will set the project automatically reducing the number of steps if you have saved your imageplane file in sourceimages folder.
- The imageplanes can be hidden as you can also see it in the screenshot
- The imageplanes are not in the center but at the edges making easier to model.
I am looking forward to hear comments,reviews and suggestion!!!









