TDrag. Maya script for animation.

$0+
3 ratings

This script will help you to adjust the time slider faster with only two hotkeys!

Features:

- If you PRESS the hotkey shortly on the LEFT side of maya window, there will appear the small window where you can adjust START RANGE and START ANIMATION of the timeline.

- If you PRESS the hotkey shortly on the RIGHT side of maya window, there will appear the small window where you can adjust END RANGE and END ANIMATION of the timeline.

- If you HOLD the hotkey, you can adjust START RANGE by sliding the cursor on the LEFT side of maya window.

- If you HOLD the hotkey, you can adjust END RANGE by sliding the cursor on the RIGHT side of maya window.

- You can adjust the timeline by the mouse sliding while you holding the hotkey, once you have released it the initial manipulator will appeared.

In order to assign hotkey copy this two parts of the code and insert it into the Hotkey editor.

/**********************************************/

Stretch/shrink timeline hotkey press:

import TDrag

TDrag.TDpress(1)

Stretch/shrink timeline hotkey release:

import TDrag

TDrag.TDrelease()

/**********************************************/

Stretch/shrink timeline with the key snapping hotkey press:

import TDrag

TDrag.TDpress(2)

Stretch/shrink timeline with the key snapping hotkey release:

import TDrag

TDrag.TDrelease()

/**********************************************/

Slide timeline hotkey press:

import TDrag

TDrag.TDpress(0)

Slide timeline hotkey release:

import TDrag

TDrag.TDrelease()

/**********************************************/

Stretch/shrink the START the timeline with the key snapping hotkey press regardless of the initial cursor position:

import TDrag

TDrag.TDpress(5)

Stretch/shrink timeline with the key snapping hotkey release:

import TDrag

TDrag.TDrelease()

/**********************************************/

Stretch/shrink the END the timeline with the key snapping hotkey press regardless of the initial cursor position:

import TDrag

TDrag.TDpress(6)

Stretch/shrink timeline with the key snapping hotkey release:

import TDrag

TDrag.TDrelease()

/**********************************************/

If you want to disable 3ds max style dragging (i.e. the timeline grows/shrink towards the mouse movement) set the value:

maxStyle = 0

If you want to enable 3ds max style dragging (i.e. the timeline grows/shrink towards the mouse movement) set the value:

maxStyle = 1


Installation :

Copy this file in your maya scripts folder (for example - C:\Users\***Username***\Documents\maya\2016-x64\scripts)


Happy animating!


Version updates:

Version 1.1

  • Added stretch/shrink timeline with the key snapping feature.


Version 1.2

  • Fixed slide timeline direction.
  • Improved performance (code optimization).


Version 1.3

  • Added the time editing that is not depends on any part of the screen. I.e. one assigned hotkey will always edith the start of the animation and another one will always edit the end of the timeline. Please, read the description about what commads responsible for this features.
  • Added option to select the dragging direction (towards or opposite to the mouse movement).


Version 1.4

  • Added the time editing with the key snapping that is not depends on any part of the screen


Version 1.5

  • PySide2 for maya 2017+ versions support



You can find more scripts on my personal site - fabis.xyz

$
I want this!
Copy product URL

Ratings

5.0
(3 ratings)
5 stars
100%
4 stars
0%
3 stars
0%
2 stars
0%
1 star
0%
$0+

TDrag. Maya script for animation.

3 ratings
I want this!