SNAP TO PLACE
How to use:
Copy the code below to the script editor and drag it onto your custom shelves so you can access it at any time (remember to save your shelves before quitting Maya)
Select object with correct location first and then the object you want to move to match the first. Then run the script found below. It snaps the second object(s) selected to the location and rotation of the first object's pivot.
If the second object(s) has any keyframes on any translation or rotation channels, it sets a keyframe at the current frame on those channels.
The rotations may not match if either one of the objects has freeze transforms.
If the second object(s) has any keyframes on any translation or rotation channels, it sets a keyframe at the current frame on those channels.
The rotations may not match if either one of the objects has freeze transforms.
CREATE CONTROL
How to use:
Copy the code below to the script editor and drag it onto your custom shelves so you can access it at any time (remember to save your shelves before quitting Maya)This is a tool to create nurb curves as controls for a rig. When rigging I found myself going through the same steps a bunch of times to create all the controls I needed, so I created this shelf button that does about 90% of the job for me. Here's how it works:
Select the object and then run the script. It will create a nurbs circle and snap it to the object. It will rotate the circle so that it's perpendicular to the longest dimension of the object and will resize it to make it slightly bigger than the second longest dimension of the object. It will also delete history on the circle and freeze transforms. This usually gets me pretty close to where I want to get and all that's left is moving or tweaking the shape in component mode to get it to look the way I want.
CREATE CAMERA
How to use:
Copy the code below to the script editor and drag it onto your custom shelves so you can access it at any time (remember to save your shelves before quitting Maya)
This tool speeds up the process of creating a camera and opening it in a new window. First find the camera angle you want using your perspective camera (or any other camera you don't mind moving around). With that viewport selected, run the script. It will create a new camera with the same properties and open a new panel to display the new camera view, with a resolution gate on, no grid and objects displayed in smooth shaded mode. It will also name the cameras incrementally as cam01, cam02, and so on.
This tool speeds up the process of creating a camera and opening it in a new window. First find the camera angle you want using your perspective camera (or any other camera you don't mind moving around). With that viewport selected, run the script. It will create a new camera with the same properties and open a new panel to display the new camera view, with a resolution gate on, no grid and objects displayed in smooth shaded mode. It will also name the cameras incrementally as cam01, cam02, and so on.
LOCATOR AT SELECTION
How to use:
Copy the code below to the script editor and drag it onto your custom shelves so you can access it at any time (remember to save your shelves before quitting Maya)
Select an object and run the script. It will create a locator named 'objectName_loc' at the position of the pivot point of the selected object.
Select an object and run the script. It will create a locator named 'objectName_loc' at the position of the pivot point of the selected object.