PDA

View Full Version : Joint Morph Plus Help!

hound312
11-09-2005, 08:30 AM
It seems that everytime I open my file, the morph assignments in Joint Morph Plus go wonky or unassigned. Am I doing something wrong? Is it a bug? Is there a work around. At the very least, is there an expression that I can copy somewhere that will do the same thing since JMP seems to bug out on me?

Thanks,

David M

Dodgy
11-09-2005, 11:09 AM
The expression is:

([channel]-B)*((D-C)/(B-A))+D

Where
Channel is the controlling channel (eg Man.Elbow.Rotation.P)
A=minimum value channel takes
B=maximum value channel takes
C=Minimum value morph takes
D=Maximum value morph takes

So for example an elbow which goes between 0 and 90, and has a morph go from 0 to 100% would mean (100% = 1 for morphs)

([Man.Elbow.Rotation.P]-90)*((1-0)/(90-0))+1

or more simply,

([Man.Elbow.Rotation.P]-90)*((1)/(90))+1

pooby
11-09-2005, 02:37 PM
Thanks for sharing that Dodgy.
Do you have, or do you know of a list of useful expressions to accomplish different tasks?
It would be SUCH a useful resource.. I can't believe I've never seen one.

Dodgy
11-09-2005, 05:12 PM
Ummmm, I made that one up... That's what a maths degree does for you... Saying that, it's been ten years since I did any hard maths, so the only time I stretch those muscles is when I write plugins :) Still it gives me a buzz :)

pooby
11-10-2005, 03:05 AM
See... How do you go about 'making that up?' I'm so impressed..

I can't find a resource for Expressions anywhere. I think someone should start one!

coughhintcough