SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / [question] keyframe shortcuts?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 25-02-2005, 11:35 AM   #1
astrocalder
Registered User
 
astrocalder's Avatar
 
Join Date: Feb 2005
Location: Santa Monica
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default [question] keyframe shortcuts?

i'm working on this animation which style-wise is like a video game. the hero walks through rooms, and punches bad guys. i want to have it so every punch is the same, just as if it was from a game.
is there a way to easily repeat keyframes? like if i keyframe the hero's joints to perform a "punch" action. if he has to punch several times throughout the animation, what's the best way to repeat the punch action?
i know copying and pasting the frames will work, or even only having one "punch" action and changing the camera so it appears to be different, but is there a shortcut like a blend shape action, or using character sets to more easily assign and repeat actions?
astrocalder is offline   Reply With Quote
Old 25-02-2005, 12:19 PM   #2
Shayder
Registered User
 
Join Date: Apr 2004
Location: Saskatchewan Canada
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could use set driven keys in order to do this. Create a locator and use that as the driver. You could even add some attributes to it like "punch_soft", "punch_hard". Then load your joints that control the arm as the driven. Then just set your keys for the min and max of the punch, parent the locator to the chracter and there yah go.
Shayder is offline   Reply With Quote
Old 25-02-2005, 02:10 PM   #3
mhcannon
Subscriber
 
mhcannon's Avatar
 
Join Date: Sep 2004
Location: Waianae, HI
Posts: 1,275
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Not much experience this, but I think you can create "poses" which can be referenced when you need them.
__________________

AIM: mhcannonDMC

"If you love your job, you'll never work another day in your life."
mhcannon is offline   Reply With Quote
Old 25-02-2005, 04:07 PM   #4
astrocalder
Registered User
 
astrocalder's Avatar
 
Join Date: Feb 2005
Location: Santa Monica
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

do you think you could elaborate, shayder? i've been using maya for over a year now, but i have no experience with making locators or set driven keys. i opened the set driven keys window, and i see you can load a driver and a driven. so driver would be the locator, and driven would be the effected joints, right?

also would it be one locator for each move, like 1 for punch, 1 for kick, etc?

thanks for your help.
astrocalder is offline   Reply With Quote
Old 25-02-2005, 07:52 PM   #5
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

You can copy and paste keyframes in the Graph Editor (Window > Animation Editors)
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 26-02-2005, 02:29 AM   #6
Shayder
Registered User
 
Join Date: Apr 2004
Location: Saskatchewan Canada
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Go under the create menu and select make locator. Select the locator and under the modify menu select add attribute.

Type in the attributes name ie: Punch_hard

Data type: float

att type: scalar

Numeric att. prop:
minumum: whatever you lik I use -10
Max: 10

Default: 0

hit add

close.

Then open up the Set driven keys options. with the loactor selected hit driver UNDER THE LOCATOR ATTRIBUTES IN THE RIGHT HAND WINDOW SELECT THE Punch_hard ATTRIBUTE.

Then shift select the joints you want to be animated. hit driven.

(MAKE SURE YOU HIGHLIGHT ALL THE JOINTS IN THE LEFT WINDOW AND THEN THE ROATES AND TRANSLATES IN THE RIGHT HAND SIDE AS WELL.)

With the locator selected make sure you set the Punch_hard at one of the settings. chose default 0. Do this in the channel box. Then move the driven joints into their default (resting) position "
With the locator selected make sure you set the Punch_hard at one of the settings. chose default 0. Do this in the channel box. Then move the driven joints into their default (resting) position

In the driven window highlight whatever you need to, all the rotates and translates, etc.

Then hit key.

Highlight the locator again and set the punch_hard setting to 10.

Move the joints to their final hard punch position. (end of the punch) hit key.

Repeat for the -10 position except that arm will be drawn back, ready to punch. set the keys;

You may have to set a 5 and a -5 key as well, just as the joints are in their halfway position.

Once you are done with this all you have to do is select the locator and mmb drag over the Punch_hard channel box to see the arm move. You can then parent the locator to the skeleton so it stays close by.

Set driven keys are pretty usefull when you get the hang of them. You can use any keayable attribute as the driven you could eventie the punch into the locators translate channels so the arm punches depend on the translation of the locator.

Last edited by Shayder : 26-02-2005 at 03:17 PM.
Shayder is offline   Reply With Quote
Old 26-02-2005, 01:06 PM   #7
astrocalder
Registered User
 
astrocalder's Avatar
 
Join Date: Feb 2005
Location: Santa Monica
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

awesome, thanks for the walkthrough, that makes sense now. i'll have a go at it and see if i can't get it to work.
astrocalder is offline   Reply With Quote
Old 26-02-2005, 03:15 PM   #8
Shayder
Registered User
 
Join Date: Apr 2004
Location: Saskatchewan Canada
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just read through my post, I missed a step.



"Then open up the Set driven keys options. with the loactor selected hit driver I FORGOT THIS STEP- UNDER THE LOCATOR ATTRIBUTES IN THE RIGHT HAND WINDOW SELECT THE Punch_hard ATTRIBUTE.

Then shift select the joints you want to be animated. hit driven.
(MAKE SURE YOU HIGHLIGHT ALL THE JOINTS IN THE LEFT WINDOW AND THEN THE ROATES AND TRANSLATES IN THE RIGHT HAND SIDE AS WELL.)

With the locator selected make sure you set the Punch_hard at one of the settings. chose default 0. Do this in the channel box. Then move the driven joints into their default (resting) position "


I edited the earlier post with this info to make it easier to understand.

Sorry for the missed step. That's what you get for staying up too late i guess. I hope this works for you!

Last edited by Shayder : 26-02-2005 at 03:18 PM.
Shayder is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.