PDA

View Full Version : applying a new dagpose to selected joints


anthonymcgrath
02-13-2009, 09:22 AM
hey all,
I've got a skinned character with a bindpose but after a bit of faffing with mel I've found that I can create new dagposes of selected items. So using a simple script, I select just the joints I want and the ik handles and I save off a dagpose in effect having the ability to create a simple full body pose of the character.

using this line in mel...
dagPose -save -selection -name TPOSE;

so I would have
TPOSE

and I use the same command to create...
BENTOVER

my question is tho - is it possible to apply my BENTOVER pose to just the arm joints of the character? or maybe just to the selected item. At the moment I can only apply the dagpose to the full character

I know there's a poselib script online which is very good and I could always use character sets but I just wanna see if I can suss this out as I'm trying to write this ability into a simple mel script for the guys at work :)

BoostAbuse
02-13-2009, 01:11 PM
Yup, you can store different bindPoses for different joints if you'd like. Inside of the bindPose attributes is a 'bindPose' switch which basically tells the skinCluster what pose to use for the mesh. With this you can setup different bindPoses on different sets of joints but you need to remember to toggle off the unwanted bindPose (Maya will gripe at you that it cannot go to bindPose because there are two bindPoses, this is because the user has forgotten to uncheck one of the bindPose active attributes).

In your case you could store a full body reset TPOSE and have that active across all of the character and then store BENTOVER for say the spine joints. If you select each spine joint or joint in your BENTOVER bindPose you can open the AE and go to the TPOSE and BENTOVER tabs to turn off TPOSE on the spine joints and turn on BENTOVER via the bindPose attribute at the top.

Another option would be to write a script that would allow you to interactively do this without having to constantly set and reset the attribute :)

-s

anthonymcgrath
02-13-2009, 01:43 PM
wow great response thankyou! I noticed the bindpose tickbox as you mention but didn't think to use it. I'll have a play with the method you suggest and see what I can come up with :) hopefully I'll be able to write a good gui mel to work with it too.

I've written a few scripts that let me make a new dagpose based on a name I give it. I can then select it in my character skeletons outputs section and call that pose back in effect giving me a poselibrary for the character controls and joints I want to work with.

thanks again I'll update this thread to let you know how I get on!

ta
ant

CGTalk Moderation
02-13-2009, 01:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.