Skip to content

A maya script used to quickly calculate movement speed in units/time.

License

Notifications You must be signed in to change notification settings

Jordandionduval/LinearSpeedCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

LinearSpeedCalculator

A maya script used to quickly calculate movement speed in units/time.

image

Table of content

Overview

This tool was made to help my animator colleagues sync up walk/run cycles with in-game character movement speed. This can be useful to avoid feet sliding on the ground. The logic for this was initially made in about a day, but I later added UI and tweaked the logic to work with vector data another day.

The tool requires the user to select a controller with its translate attributes animated and specify a start and end frame. The distance is calculated from the translate vectors at the specified keys. The duration is determined using the provided keys, divide by framerate (fps). Distance is then divided by duration, which gives us the speed in units per seconds.

image


Installation

  1. Copy the "jdd_LinearSpeedCalculator.py" to your Maya scripts directory:

MyDocuments\Maya\scripts\

  1. Then, within maya, use the following text as a python script to run the tool:
import jdd_LinearSpeedCalculator as scpt
scpt.UI()
  1. (Optional) Alternatively, the text can be saved in the custom shelf using maya's script editor. This makes the script a small button in your current shelf so it can easily be accessed later.

Known Issues

  • Nothing so far!

About

A maya script used to quickly calculate movement speed in units/time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages