--- source the script file...
--- Invoke the script using the command WheelRigger
How to use.......
````````````````````
--- Make sure your wheel rotation axl points to X Axis ,so that the wheel direction will be in Z axis
--- Then, Freeze your wheel position.
--- Now, Invoke the script.
--- Select your wheel and focus the wheel name inputbox.
--- Type the radius of your wheel.
Click the Button RIGWHEEL.
--- Now your wheel is rigged.
--- Just give the Translation and Orientation data from your main control to the locator given for the wheel rig.
string $window = "Wheel_Rigger";
if (`window -ex $window`)
deleteUI $window;
window $window;
formLayout -ann "Script by VRaja" -bgc 0.8313729763 0.8156859875 0.7843139768 -nd 1000 ($window + "FormLayout");
$control1 = `button -bgc 0.8313729763 0.8156859875 0.7843139768 -l Close -ann "" -c ("deleteUI " + $window)`;
$control2 = `text -al center -bgc 0.8313729763 0.8156859875 0.7843139768 -l "Wheel Rigger v1.0\r\nby vRaja"`;
$control3 = `text -al left -bgc 0.8313729763 0.8156859875 0.7843139768 -l "\r\n\r\nHow to use?\r\n----------\r\n\r\n-Make sure your wheel rotation axl points to X Axis ,so that the wheel direction will be in Z axis.\r\n-Then, Freeze your wheel's position.\r\n-Now, Invoke `WheelRigger` script.\r\n-Select the wheel to be rigged and then focus the wheel name inputbox.\r\n-Type the radius of your wheel.\r\nNow Click the button `RigWheel`.\r\nYour wheel is rigged. \r\nJust give the Translation and Orientation data from your main control \r\nto the locator given for the wheel rig.\r\nYou can Adjust the Radius from the Locator channel \n\r\nCreator:\r\n--------\r\nV.Raja\r\nreachvraja@gmail.com\r\n"`;
formLayout -e
-attachPosition $control1 "left" 0 752
-attachPosition $control1 "right" 0 968
-attachPosition $control1 "top" 0 930
-attachPosition $control1 "bottom" 0 983
-attachPosition $control2 "left" 0 112
-attachPosition $control2 "right" 0 876
-attachPosition $control2 "top" 0 15
-attachPosition $control2 "bottom" 0 99
-attachPosition $control3 "left" 0 29
-attachPosition $control3 "right" 0 970
-attachPosition $control3 "top" 0 97
-attachPosition $control3 "bottom" 0 929
($window + "FormLayout");
window -e -w 362 -h 403 $window;
showWindow $window;
تعليق