一半君的总结纸

听话只听一半君

#31 How can I mirror the keys on an animCurve so the animation plays backwards?

Select one or more fcurves in the Graph Editor.

Enter the following command:

scaleKey -timeScale -1.0

Move the beginning of the fcurve(s) back to their respective places (use Maya’s SHIFT-key gesture feature to move on time but not value).

With a bit more work, and a few ‘keyframe -query’ commands, you can parse out the range of keyframes in an fcurve, find the “time center” and pivot the scale at the center of the fcurve. For example, if an fcurve was animated in the time range “0:100”, pivot it at time 50 for a true mirror fcurve:

scaleKey -timeScale -1.0 -timePivot 50
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: