Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 24-02-2004, 07:56 PM   #1
kassun
Subscriber
 
Join Date: Jul 2002
Location: minnesota, USA
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default character interaction constraint prob

character interaction constraint prob
I am animating my char to go over pick the lid up off a box look inside, start pounding the object inside to pervent from getting out, then slam it shut. I have tried various grouping and parent constraints but no luck. I am able to parent constrain the Left_hand_Loc to the left_lid_loc but when I go and do the same to the right side it cancels out the left side. Basicially I am able to get one side to work and not the other.

What I have tried is: create 4 locators, hands and on either side of the lid. Created two basic cubes and put them on either side of the lid. Parented the lid to the two cubes, then Constraind a lid_locator to the cube on it's corresponding side and did the same to the other. When i goto move the locators they move and that is it.

Thanks for your time,
Kassun
__________________
"The day you stop dreaming is the day you die"

www.kassuns.com
kassun is offline   Reply With Quote
Old 24-02-2004, 08:00 PM   #2
Kurt
Registered User
 
Kurt's Avatar
 
Join Date: May 2002
Location: Niagara Falls, Canada
Posts: 5,285
Thanks: 0
Thanked 64 Times in 64 Posts
Default

Post a pic up mate so i can get a better picture what your trying to do....
__________________
I am enough of an artist to draw freely upon my imagination, knowledge is limited, imagination encircles the world. (Albert Einstein)

http://kurtboutilier.cgsociety.org/
Kurt is offline   Reply With Quote
Old 24-02-2004, 08:08 PM   #3
kassun
Subscriber
 
Join Date: Jul 2002
Location: minnesota, USA
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorri for the crude pic, my fiance has my wacom tablet
Attached Thumbnails
 
__________________
"The day you stop dreaming is the day you die"

www.kassuns.com
kassun is offline   Reply With Quote
Old 24-02-2004, 08:19 PM   #4
Kurt
Registered User
 
Kurt's Avatar
 
Join Date: May 2002
Location: Niagara Falls, Canada
Posts: 5,285
Thanks: 0
Thanked 64 Times in 64 Posts
Default

I would just keyframe the hole thing...

If need be I would parent the box lid to the middle bone joint or my hand then if you need to drop the lid just make a duplicate and hide the one parented to the hand and keyframe the 2nd one to drop.

But that just me.... Im sure when Mike see the thread he have so more input. I like to key fram most of my animation.
__________________
I am enough of an artist to draw freely upon my imagination, knowledge is limited, imagination encircles the world. (Albert Einstein)

http://kurtboutilier.cgsociety.org/
Kurt is offline   Reply With Quote
Old 24-02-2004, 08:23 PM   #5
strobe7
Registered User
 
strobe7's Avatar
 
Join Date: Nov 2003
Location: Detroit
Posts: 311
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow, I had never thought of that Kurt, I can hide it.........
__________________
Lungs not guns....
strobe7 is offline   Reply With Quote
Old 27-02-2004, 03:10 PM   #6
strobe7
Registered User
 
strobe7's Avatar
 
Join Date: Nov 2003
Location: Detroit
Posts: 311
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How do you hide something at an exact spot with a keyframe. I mean where do you find the "hide"?
__________________
Lungs not guns....
strobe7 is offline   Reply With Quote
Old 27-02-2004, 03:55 PM   #7
kassun
Subscriber
 
Join Date: Jul 2002
Location: minnesota, USA
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you would key the visibility on and off

kassun
__________________
"The day you stop dreaming is the day you die"

www.kassuns.com
kassun is offline   Reply With Quote
Old 27-02-2004, 04:24 PM   #8
Kurt
Registered User
 
Kurt's Avatar
 
Join Date: May 2002
Location: Niagara Falls, Canada
Posts: 5,285
Thanks: 0
Thanked 64 Times in 64 Posts
Default

Ya key the visibility on and off, just make sure you line up the keys exactly
__________________
I am enough of an artist to draw freely upon my imagination, knowledge is limited, imagination encircles the world. (Albert Einstein)

http://kurtboutilier.cgsociety.org/
Kurt is offline   Reply With Quote
Old 18-03-2004, 10:19 PM   #9
strarup
Subscriber
 
Join Date: Jan 2003
Location: Denmark
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Kassun,

what you also can do, is make one Locator for the box, and one for each IKHandle on the hands... these two hand locators, would then be parented to the boxlocator...

so the box locator would be the master driver, and the two handlocators will follow when the box moves...

during a 3d course at the Animation Workshop in Viborg Denmark, I made this little script for a weight exercise, maybe you can use it... you would just have to change some names, but I have written it in the script...

Code:
/*
''
''   Script Name: WeightExercise Setup v0.1
''   Author: Alex V. U. Strarup (3d@strarup.net)
''   Created: 4. Nov. 2003
''   Last Updated: 18. March 2004
*/

////////////////////////////////////////////////////////////////////////////////////////////
//
// this script was made to setup a weight exercise, during a 3D Animation Course at the
// AnimationWorkshop Viborg Denmark...
//
////////////////////////////////////////////////////////////////////////////////////////////
//
//  DESCRIPTION : setup script for creating a box constrain for a weight exercise...
//
////////////////////////////////////////////////////////////////////////////////////////////
//
//put the script in the script folder C:\Documents and Settings\~Your_User_Name~\Documents\maya\5.0\scripts
//
//  change LEFT_IK_HANDLE_NAME to the Name of your Left Hand Ik Controller...
//  and change Right_IK_HANDLE_NAME to the Name of your Right Hand Ik Controller...
//
//  if you are using Maya 4.5 you would also have to change the parentConstraint,
//  to a pointConstraint and a orientConstraint... e.g. -->
//  delete `pointConstraint DaBox BoxLocator`;
//  delete `orientConstraint DaBox BoxLocator`;
////////////////////////////////////////////////////////////////////////////////////////////
//
//How to call the script, just write...
// WeightExerciseSetup; in the commandline
//
////////////////////////////////////////////////////////////////////////////////////////////
//
//  Conditions : USE AT YOUR OWN RISK, NO RESPONSABILITIES DUE TO MALFUNCTION, JOB LOST, WHATEVER.
//
////////////////////////////////////////////////////////////////////////////////////////////

global proc WeightExerciseSetup()
{
//create the box...
  polyCube -w 5 -h 5 -d 5 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -tx 1 -ch 1 -n "DaBox";
//move it...
  setAttr "DaBox.ty" 2.5;
  setAttr "DaBox.tz" 7;
//freeze the transformation...
  performFreezeTransformations 2;
  makeIdentity -apply true -t 1 -r 1 -s 1;
//move the pivotpoint of the box
  move 0 0 4.5 DaBox.scalePivot DaBox.rotatePivot ;

//create the Boxlocator which shall drive the hands...
  spaceLocator -p 0 0 0 -n "BoxLocator";
//contrain it to the box, and delete the constrain...
  delete `parentConstraint DaBox BoxLocator`;
//constrain the box to the locator......
  parentConstraint BoxLocator DaBox;
//make the boxlocator a bit bigger so it is easier to select and freeze translation...
  scale -r 2 2 2 BoxLocator;
  performFreezeTransformations 2;
  makeIdentity -apply true -t 1 -r 0 -s 0;

//create the lefthand locator...
  spaceLocator -p 0 0 0 -n "LH_Locator";
//contrain it to the left ikController, and delete the constrain...
//change LEFT_IK_HANDLE_NAME to the Name of your Left Hand Ik Controller...
  delete `parentConstraint LEFT_IK_HANDLE_NAME LH_Locator`;
//constrain the left ikController to the locator...
  parentConstraint LH_Locator LEFT_IK_HANDLE_NAME;

//create the righthand locator...
  spaceLocator -p 0 0 0 -n "RH_Locator";
//contrain it to the left ikController, and delete the constrain...
//change Right_IK_HANDLE_NAME to the Name of your Right Hand Ik Controller...
  delete `parentConstraint RIGHT_IK_HANDLE_NAME RH_Locator`;
//constrain the Right ikController to the locator......
  parentConstraint RH_Locator RIGHT_IK_HANDLE_NAME;

//parent the handlocators to the box locator
  parent LH_Locator RH_Locator BoxLocator ;
}
if you want to, you can then also lock the move and rotation attributes of your IKcontrollers, so you animate your arms/hands with their locators, and then when you have placed the hands on the box, you can animate them with the Box locator... here comes the code for the locking...

Code:
//lock the "move" attributes of the ikControllers...
select -r LEFT_IK_HANDLE_NAME.tx LEFT_IK_HANDLE_NAME.ty LEFT_IK_HANDLE_NAME.tz LEFT_IK_HANDLE_NAME.rx LEFT_IK_HANDLE_NAME.ry LEFT_IK_HANDLE_NAME.rz RIGHT_IK_HANDLE_NAME.tx RIGHT_IK_HANDLE_NAME.ty RIGHT_IK_HANDLE_NAME.tz RIGHT_IK_HANDLE_NAME.rx RIGHT_IK_HANDLE_NAME.ry RIGHT_IK_HANDLE_NAME.rz;
setAttr -lock true `ls -sl`;
select -cl;
here is the code to get the locators, just make a shelf, and make 3 shelf buttons, by dragging each command to the shelf...

Code:
//Get the Box Locator...
select -r BoxLocator;

//Get the Left Hand Locator...
select -r LH_Locator;

//Get the Right Hand Locator...
select -r RH_Locator;
regards

Strarup
__________________
------------------------------------------------
Alex V. U. Strarup

One mistake can ruin it all...
strarup is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Character animation-Finished work maheshsubbiah Finished Work 7 05-12-2010 05:04 AM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.