Picture
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.

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.

  1. The imageplanes can be hidden as you can also see it in the screenshot
  2. The imageplanes are not in the center but at the edges making easier to model.

Picture
Download Source 1

Picture
Download Source 2

If the above download link is not working try mirror 2
I am looking forward to hear comments,reviews and suggestion!!!
 


Comments




Leave a Reply


This site contains actual content, written by an actual person. All of this stuff is mine. Even though it may read like it was written by monkeys on typewriters, I actually wrote it. If you want to use my stuff, you can't. At least, not without contacting me first. I also have a privacy policy that I guard fiercely. Any information you provide on this website will not be used by anyone else but me. Listed on High PageRank Sites Directory
Blog, Website Content, Design, VFX Showreel work & Tools & Scripts by Sanjeev Kumar is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Creative Commons License
Create a free website with Weebly
.