Giter Club home page Giter Club logo

mayautilities's Introduction

MayaUtilities


This is a set of MEL scripts useful for anyone importing models into Maya often

Custom Shelf

All of the individual scripts on this repo are stored within the button shelf file 'shelf_Utilities.mel'

It must be placed in %MAYA_FOLDER%/%VERSION%/prefs/shelves/ so that Maya can find and load the custom shelf

You may rename the shelf however you wish, the shelf name format being shelf_NewName.mel (if you decide to do so, you also need to change the first line of your shelf_NewName.mel script accordingly)

Otherwise, the individual scripts can be copy-pasted into the Script Editor MEL and saved as shelf buttons onto any existing shelf, by doing File -> Save script to shelf... in the Script Editor.

For more details on importing models into Maya and what these scripts do, see this page

Animation Notice If you have trouble importing animations into Maya from COLLADA DAE models, you can use this script by Inferry & scurest which will split a DAE file into several files, one for each animation. You can run this script by saving doing py splitter.py file.dae in the directory where you put it.

Here is a short description of each MEL script:

  • AlphaNodeCorrect: Manually plugs in the output alpha of each texture node to its corresponding material node's input transparency. Use this if the parts of the model which should be transparent appear opaque.

  • TransparencyCorrect: Make alpha channels work properly for imported models by setting 'alpha is luminance' to false. Use this when the entire model is more or less see-through, it will make the correct parts of the model opaque as they should be.


  • UnfilterAllTextures: Sets every image texture in the scene to be unfiltered (ie: aliased, pixelated)

  • FilterAllTextures: Sets every image texture in the scene to have quadratic bilinear filtering


  • MirrorAllTextureUVs: Make it so all UV nodes in the scene have U & V mirrored texture space

  • UnMirrorAllTextureUVs: Make all UV nodes in the scene have U & V mirroring set to false


  • TileAllTextureUVs: Make it so all UV nodes in the scene have repeating tiled texture space

  • UnTileAllTextureUVs: Make it so all UV nodes in the scene only have texture space within the 0-1 UV square, so the outside of this UV space is a solid color


  • ShowVertexColors: Make all objects in the scene display their polygon vertex colors

  • HideVertexColors: Make all objects in the scene hide their polygon colors


  • NoShade: Make all materials full-lit 100% diffuse

  • Incandesce: Make all materials have their 'Incandescence' set to 1 - can be useful to get that full-lit look on the Maya legacy default viewport.

  • CelShade: Make every material's ambient lighting use a simple 3-step ramp shader


  • MergeAllVertices: Merges together any vertices that are within 0.001 distance of each other

  • SoftenAllEdges: Makes every edge of every polygon object have soft normal shading

  • HardenAllEdges: Makes every edge of every polygon object have hard polygonal normal shading


  • FaceCameraAlways: Makes it so the selected polygon faces are always facing the camera, with an aim constraint set to the default maya 'persp' camera.

and these last 2 scripts are specifically intended for submitting model rips to the Models Resource

  • SmallScreenshot: Saves a 168x145 png screenshot of the current view (without HUD elements and bone joints)

  • LargeScreenshot: Saves a 750x650 png screenshot of the current view (without HUD elements and bone joints)

mayautilities's People

Contributors

lexouduck avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.