ForEachLoop
main mel draw photography about

ForEachLoop

 


 

Archive for the 'Mel Scripting' Category

duplicate and align to multiple objects

Posted by Sin on March 20th, 2009 filed in Mel Scripting

If you want an object to be duplicated as many times as other multiple objects, and then align them together, this script is right for you. First, select the multiple objects you want to align to, and lastly select the one desired object you want it to be duplicated and aligned to the multiple objects…sorry [...]

Read More..>>

Animation and Pose Copy Tool…with a batch transfer

Posted by Sin on February 10th, 2008 filed in Mel Scripting

The “Animation Copy” allow Maya users (tested in Maya 7) to record the pose, or animation in a text file that stored in a directory the users have picked; the directory the users picked will be recorded down(in anmPose_userPrefs.mel) so users don’t have to go in to pick the directory again next time they start [...]

Read More..>>

Create Cluster

Posted by Sin on February 4th, 2008 filed in Mel Scripting

In Maya, once you create a cluster, it will return to object mode, then you will have to go back to component mode and create a second cluster. this is very frustrated, so I always have this simple script in my tool set to create clusters faster, one and another one without going back to [...]

Read More..>>

Align two objects

Posted by Sin on January 31st, 2008 filed in Mel Scripting

Description: This simple script could help you align 2 objects together. I put an option you could turn on if you like the object to be orientated as well. First, select the target object which you want to align to and then shift select the object that will get aligned.        

Read More..>>

Rename Duplicates

Posted by Sin on January 11th, 2008 filed in Mel Scripting

Description : This script will find any duplicate names in your Maya scene and rename them to a different one by adding “1″ at the end of the name. You will know if in the script editor you see a node name has been changed, otherwise there’s none. However, this script doesn’t find duplicate Shape [...]

Read More..>>

Set Normal Size

Posted by Sin on January 11th, 2008 filed in Mel Scripting

Descriptions: This script will set the length of the normals by adjusting the slider on a window, and toggle the normals on and off.             global proc setNormalSizeProc() { $normalSize = `floatSlider -q -value setNormalSizeFS` ; setNormalsSize $normalSize; print (“Normals size :” + $normalSize); } //Sample of a window you [...]

Read More..>>

Round Float Values

Posted by Sin on January 11th, 2008 filed in Mel Scripting

Descriptions: In Maya 7, if you want to round a float value shorter to 3 decimals or whatever you like, the following is one of the solutions; convert the float to an interger, multiply with 1000 (if you want 3 decimals), add 0.0005 to round out the value, at the end divided it by 1000 [...]

Read More..>>

Joint Count Hud

Posted by Sin on January 10th, 2008 filed in Mel Scripting

Description : This hud is only useful for riggers who need to know the number of joints for their characters, if the game engine has limited the joint numbers.Type “HudJointCountProc” after sourcing the scripts below.                   global proc int s_jointCountProc() { string $allJoints[] = `ls -type joint`; [...]

Read More..>>