Python Scripts

Some of my work with Python just for learning purpose

Camera View Saver for Maya

This handy Maya script enhances your 3D workflow by providing a simple, visual way to save and recall specific camera positions and views within your scene.

Features

  • Intuitive Interface: A compact window with six numbered buttons allows you to save and access your preferred views.

  • Shift + Click to Save: Easily store the current camera view by holding Shift and clicking a button.

  • Click to Recall: Click any button to instantly jump back to its saved view.

  • Alt + Click to Clear: Remove saved views by holding Alt and clicking.

  • 2D Pan/Zoom Support: The script intelligently remembers and restores any 2D pan and zoom settings you've applied to a view.

  • Rename Buttons: Right-click a button to rename it, providing clearer context for your saved views.

  • Perspective View Restoration: Saves and restores the perspective camera's position, rotation, and scale along with other camera views.

  • Layout Restoration: Saves and restores the current layout of the Maya viewport when storing and restoring camera views.

Future Improvements

  • Local and Global Saves: Save views specific to the current scene or create a global library accessible in all your projects.

  • Keyboard Shortcuts: Quickly access and save views using customizable hotkeys for even faster navigation.

  • Add/Delete Rows: Customize the interface by adding more rows of buttons to store additional views or removing rows to streamline the layout.

Benefits

  • Streamline Navigation: Quickly jump between key angles in your scene without manual camera adjustments.

  • Compare Compositions: Easily compare different camera setups to find the perfect shot.

  • Enhanced Productivity: Save time and focus on the creative aspects of your work.

Ideal For

  • 3D Modelers

  • Animators

  • Environment Artists

  • Lighting Artists

  • Anyone who works with complex scenes in Maya.

Vertex Value Setter for Maya

This Maya script is a tool designed to streamline your vertex animation workflow. It simplifies the process of setting, keyframing, and manipulating vertex positions, particularly for tasks like resetting vertices to zero or keyframing their current positions.

Features

  • Intuitive UI: A compact interface with buttons for setting values, creating keys, and launching relevant tools like the UV Editor and Graph Editor.

  • Zero Out Vertices: Quickly reset selected vertices to the origin (0, 0, 0).

  • Keyframe Options: Easily keyframe vertices at their current position or at zero, with control over whether to key only existing keys or all vertices.

  • Sculpt Geometry Integration: Direct access to Maya's Sculpt Geometry Tool for seamless sculpting workflows.

  • Checkbox Control: Toggle whether to keyframe only vertices that already have existing keys, providing flexibility in your animation process.

Future Improvements

  • Delete All Keys: Add functionality to quickly delete all keys on the selected mesh or vertices.

  • Delete Key at Current Frame: Allow for precise deletion of keys only at the current playback frame.

  • Hotkey Support: Implement customizable hotkeys for even faster and more efficient vertex manipulation.

Benefits

  • Efficiency: Streamline repetitive tasks like zeroing out vertices or keyframing.

  • Precision: Control which vertices are affected by your actions and when they're keyframed.

  • Flexibility: Works with individual vertices, components, or entire meshes.

Ideal For

  • Animators

  • Riggers

  • Character TDs

  • Anyone who works with vertex animation in Maya.