PDA

View Full Version : Blend Shape Combination System (MEL)


danielpk
02-25-2003, 07:34 PM
Hi,
I am new here and this is my first post.

I've written some MEL scripts that will set up a complex blend shape system. The idea came up as I animated a face with blend shapes and ran into the problem that certain combinations of blend shape targets didn't look as I had expected. So I ended up with about 80 targets (20 were animated, the others were linked with set driven keys or expressions to certain combinations).
Furthermore I wanted to be able to edit the targets at any time so I had to keep them all in the scene. You propably can imagine that it was no fun working with a scene of about 250MB.

Not really what I wanted, so I took the time to learn some MEL and started to develop a system where you can control the appearance of every combination you want. You simply select all "influences" of each target and the script will do the following:
- add the additional "combination" targets
- create a control curve (with the animatable attributes)
- create an expression that chooses which target should be used
So in the end you have to animate the same number of attributes and all the combination targets will be included automatically.

The scripts also provide the possibillity to edit the targets even when they were already deleted in the scene.

You can download a zip file containing 5 MEL scripts and a readme.

DPK_combinations version 1.29 (http://www.stargrav.com/DPK_scripts/DPK_combinations1_29.zip)

I just started to learn MEL a few weeks ago and would appreciate any feedback (though my focus is on animation).

Daniel

Nicool
02-25-2003, 09:28 PM
Big respects to you who has learn Mel scripting for a real needed!
:thumbsup:

DIMO
02-26-2003, 11:02 AM
Hi,

I had no time yet to test the script. But it sounds good.
I also have some problems with blendshapes. Since you have digged into them might be you can help me on it:

http://www.cgtalk.com/showthread.php?s=&threadid=46086

Perhaps a mel script can do this ?

danielpk
02-26-2003, 04:02 PM
Nicool,

thanks for the kind reply, but I think I'm just starting to learn Mel :).


DIMO,

I'm sorry to tell you that I don't have any solution other than that posted by Rudity (though it will not be compatible to my combi system as it does not support inbetween targets yet :sad: ).

JulianJohnson
02-26-2003, 10:39 PM
hi there thanks for the script, it sounds interesting, thankyou for putting it up

wrend
02-27-2003, 07:03 PM
heya,

groovin! looks to be a tidy bit of work so far!! after ive used it a bit more ill be able drop you some feedback.

cheers!

dmcgrath
03-09-2003, 05:04 AM
Okay, the cool thing about blendshapes is they don't have to be refrencing you model everyitme you build one. The wire deformer tool has taken care of that problem. And you cna make you surfaces live and just draw a curve right on them. Any shape you want. As long as your geometry works the way you want it to, the deformer will be a piece of cake. You can then use just nurbs curves for blendshapes, and greatly cut down on filesizes. Not to mention, you can have the same amount of control if not better. Then set them all up sith SDK's and "bob's your uncle"!

I have used the wire tool a lot lately, and don't think I'll ever need 30 heads in my scenes ever again. You can use lattices on curves or another deformer, particles, bones, whatever you want. The time it saves you in the end will astound you.

Sorry to blow this into your thread, but I thought it appropriate.

CGTalk Moderation
01-14-2006, 12:00 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.