Tuesday, October 2, 2007

Dynamic Hair and Spline IK...together.

This one came up at work today: How to drive a bone chain dynamically. This is realitivy easy to setup....so....let's go.

Go ahead and draw your joint chain. Orient your joints--always orient your joints. Here, I'm putting Y down the bone, with a pole prefrence for z-positive. Hopefully, if all goes well, this will make the joint point it's local Y axis to the next joint in the chain, and rotate it on that to get Z facing in the positive world orentation. Not always perfect, but it's a good start. The last joint has nothing to point to, so it's ignored. And if it's not, make sure that the "Orient Child Joints" box is checked so it affects the entire joint chain.

Next, choose to draw an EP curve, with at least a Curve Degree of 3 in the tool settings. Hold V and click the first and last joint to snap to those joints and complete the curve. Now, goto Edit Curves -> Rebuild Curves. In this box, reset the tool, then enter the number of joint spans in the "Number of spans" box. This will recreate the curve, making a Control Vertex for every joint in the chain. This isn't absolutly required to do, but it makes sense to have the same number of spans in each the contol spline and the joint chain.


With your curve selected, goto Hair -> Make Selected Curves Dynamic. This will...uh, well, this will make the selected curves dynamic. Doing so moves the curve from something you control into something Maya controls. In your Outliner you'll see all that Hair System stuff appear that always accompanies this kinda stuff. The curve coming from the Follicle is a draw curve, and the curve coming from the hairSystem1OutputCurves is the dynamic one. At this point, selecting the curves in the 3D view is difficult because they're in the same place. I don't need or care about the draw curve, so I'm gonna toggle it's visibility to off. Now I can easily select the dynamic curve in the 3D view. To clarify, draw = curve1, and dynamic = curve2.

When you create a SplineIK, Maya draws the Spline part for you. We want our curve to drive the SplineIK, so we don't want Maya to create one. To stop Maya from doing this, I'll uncheck the (on by default) Auto Create Curve box in the SplineIK tool settings.

To tell Maya what curve to use as the driving curve for the SplineIK, we click-click-shift-click. Click the first joint....click the second joint...hold shift...and click the curve. If Maya gets your point, she'll make an IK handle which will appear in your outliner. *stretch!*, almost done.

When you convert a curve into a dynamic curve, the curve is automatically anchored at both ends. If you hit play, the curve will only sag under the virtual gravity. If you followed this example as I've done it, when you hit play you won't see anything happen because the virtual gravity is pulling down on Y and we're vertically oriented (Y is up by default in Maya). choose the follicle in your outliner and in your channel box, set Point Lock to Base (your first click in creating the curve is the base). There are four options there, No Attach, Base, Tip, and BothEnds. Seems pretty straight forward as to what those mean, so we'll skip explanation.



Now you can test your finished Dynamicaly Driven Spline IK system by heading to the Hair shelf, choosing the follicle, and starting Interactive Playback (the green arrow icon on the Hair shelf). Move your follicle around and watch your bones go swayin' all over the dang place.


To make any use out of this, parent the follicle to what ever it is that's moving, such as....oh, I dunno, a lamp so you can puse it as a pull chain.

8 comments:

Anonymous said...

[u][b]Xrumer[/b][/u]

[b]Xrumer SEO Professionals

As Xrumer experts, we have been using [url=http://www.xrumer-seo.com]Xrumer[/url] quest of a long immediately conditions and recollect how to harness the titanic power of Xrumer and adapt it into a Banknotes machine.

We also purvey the cheapest prices on the market. Assorted competitors desire cost 2x or square 3x and a destiny of the opportunity 5x what we pervade you. But we feel in providing great mending at a low affordable rate. The entire point of purchasing Xrumer blasts is because it is a cheaper alternative to buying Xrumer. So we aim to abide by that bit in cognizant and afford you with the cheapest rate possible.

Not only do we be suffering with the greatest prices but our turnaround in the good old days b simultaneously for the treatment of your Xrumer posting is super fast. We will take your posting done ahead of you know it.

We also provide you with a roundish log of loaded posts on contrary forums. So that you can catch a glimpse of for yourself the power of Xrumer and how we get harnessed it to gain your site.[/b]


[b]Search Engine Optimization

Using Xrumer you can expect to apprehend thousands upon thousands of backlinks in behalf of your site. Many of the forums that your Site you force be posted on oblige great PageRank. Having your association on these sites can deep down expropriate strengthen up some top rank help links and really riding-boot your Alexa Rating and Google PageRank rating owing to the roof.

This is making your site more and more popular. And with this increase in reputation as grammatically as PageRank you can expect to lead your milieu really downright expensive in those Search Engine Results.
Conveyance

The amount of traffic that can be obtained aside harnessing the power of Xrumer is enormous. You are publishing your situation to tens of thousands of forums. With our higher packages you may even be publishing your site to HUNDREDS of THOUSANDS of forums. Visualize 1 post on a all the rage forum drive almost always cotton on to a leave 1000 or so views, with communicate 100 of those people visiting your site. Modern assume tens of thousands of posts on celebrated forums all getting 1000 views each. Your see trade liking go through the roof.

These are all targeted visitors that are interested or singular about your site. Envision how many sales or leads you can succeed in with this great loads of targeted visitors. You are line for line stumbling upon a goldmine friendly to be picked and profited from.

Remember, Traffic is Money.
[/b]

TRAVERSE B RECOVER YOUR CHEAP ERUPTION TODAY:


http://www.xrumer-seo.com

Anonymous said...

In to terms arrest the being with two backs casinos? experimentation this nude [url=http://www.realcazinoz.com]casino[/url] tillerman and acquiesce up online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also restrict antiquated our story [url=http://freecasinogames2010.webs.com]casino[/url] contribute something at http://freecasinogames2010.webs.com and strike natural bagatelle !
another contrasting [url=http://www.ttittancasino.com]casino spiele[/url] devise is www.ttittancasino.com , as opposed to of german gamblers, sell-out it petulant with b organize magnanimous online casino bonus.

Anonymous said...

scam adult dating sites http://loveepicentre.com/articles.php online dating newcastle upon tyne

Anonymous said...

free lingerie magazine ebook http://audiobookscollection.co.uk/Enzyme-Kinetics-and-Mechanism-Part-F-Detection-and-Characterization-of-Enzyme-Reaction-Intermediates/p219606/ easychair millionaire ebook [url=http://audiobookscollection.co.uk/it/The-Many-Facets-of-Leadership/p145553/]ebook pdf download[/url] top secret restaurant recipes 2 ebook

Anonymous said...

d200 ebook http://audiobookscollection.co.uk/fr/Effective-Parenting-for-the-Hard-to-Manage-Child-A-Skills-Based-Book/p226726/ after popper kuhn and feyerabend ebook [url=http://audiobookscollection.co.uk/es/The-Proteus-Effect-Stem-Cells-and-Their-Promise-for-Medicine/p226912/]advanced trading rules ebook[/url] wing chung free ebook

Anonymous said...

trx suspension exercises ebook http://audiobooksplanet.co.uk/es/Gay-Men-and-the-Forms-of-Contemporary-US-Culture/p196776/ dark posession christine feehan ebook [url=http://audiobooksplanet.co.uk/fr/A-Cat-Named-Brat/p29220/]ebook of fashion design[/url] pratchett going postal ebook torrent

Anonymous said...

free robert collier ebook http://audiobooksworld.co.uk/es/authors/?letter=A&page=5 free cds exam ebook [url=http://audiobooksworld.co.uk/fr/Family-The-Making-of-an-Idea-an-Institution-and-a-Controversy-in-American-Culture/p224216/]zinio ebook[/url] say goodbye to psoriasis ebook review

Anonymous said...

[url=http://certifiedpharmacy.co.uk/categories/birth-control.htm][img]http://onlinemedistore.com/2.jpg[/img][/url]
unt getting pharmacy school http://certifiedpharmacy.co.uk/products/nexium.htm professionalism in pharmacy [url=http://certifiedpharmacy.co.uk/products/cialis-soft-tabs.htm]ingles pharmacy[/url]
east tennessee state school of pharmacy http://certifiedpharmacy.co.uk/catalogue/i.htm no experience pharmacy technician [url=http://certifiedpharmacy.co.uk/products/luvox.htm]luvox[/url]
ida pharmacy bloor http://certifiedpharmacy.co.uk/products/propranolol.htm pharmacy resume samples [url=http://certifiedpharmacy.co.uk/products/tricor.htm]free blood pressure machines pharmacy grocery[/url]
drug calculations for pharmacy http://certifiedpharmacy.co.uk/products/diovan.htm careers in pharmacy [url=http://certifiedpharmacy.co.uk/products/lasuna.htm]lasuna[/url]