I made a menu with my most useful MEL scripts. You may find them useful. Most of them were written in a production evironment, with old versions of Maya. Some of them need to be added some features. You can download and use them freely.

download the 3db script menu

 

 

 

Installation

1: download and extract the scripts.
2: in userSetup.mel ( create it if needed, in your script directory ) type "source " and the path where you extracted the scripts. Be careful, on Windows, with the backslashes (\), you may have to escape them (\\).

 

Light Linking

Select lights that illuminate by default: self explanatory
Select lights that don't illuminate by default: self explanatory
Set illuminates by default for selected lights: self explanatory
Remove illuminates by default for selected lights: self explanatory
Remove all light links: some old version of Maya tend to be buggy when trying to break light links. This script removes all non-referenced light links in the scene.
Force break light links: again, this is useful when Maya won't do that correctly
Light linking diagnostic: this prints the number of light and ignore light links of the selected lights. It will warn whenever there are both a light and ignore light link to the same object (yes that can happen!). This can be a very useful tool.
Print link index between object and light: light linking is stored in a lightLinker node, which is an array of object-light pairs. This script gives the index, in the lightLinker array, of the object-light pair.

 

Set Manager

Add objects to set: self explanatory
Remove objects from set: self explanatory
Number of objects in set: self explanatory
Remove hidden objects from set: self explanatory

 

Constraint Finder

Find point constraint: select a constraint object, or its constraint node, then run the script and the object to which it is constrained will be selected.
Find orient constraint: see above.
Find aim constraint: see above.

 

Work Environment

Store parameters: saves either all the parameters, or the channel box parameters, of the selected node under a given name. You can save as many "presets" as you like, you can retreive them, and delete them. This script was developped with material nodes and have not been tested of all node types. It should work however on transfom and shape nodes. The preset names must not contain spaces and certain characters. When the presets are not used anymore, delete them to free memory.
Toggle "look through selected": when on, the "look through selected" action will be performed each time you selec a light or camera. You can specify in the option box the target panel, as well as the near clip plane and far clip plane of the camera (if light selected).

 

3Delight

Compile shaders: This is a UI for 3Delight's shaderdl.
Convert textures to TDL: This is a UI for 3Delight's tdlmake.

 

 

 

 

 

 

 

- home - curriculum - competences - gallery -MEL scripts - shaders - contact - links -