ForEachLoop
main mel draw photography about

ForEachLoop

 


 

Archive for January, 2008

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

Water color

Posted by Sin on January 28th, 2008 filed in 3D

I made this water color painting while ago, I will paint more when I have more spare time.

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