Follow Curve - maintain joint volume - layer script WIP

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

slice11217
Posts: 279
Joined: Thu Mar 30, 2006 6:12 pm
Location: Verona, New Jersey

Post by slice11217 »

Um, OK here I go again....

This is a really interesting script Vern. I gotta admit, just previous to reading this thread I had been reading your thread on the aim bone script. Now, perhaps its just the serendipity of having these two threads so closely related in time, or maybe it's just a natural thought pattern, but I just can't help but wonder... what if this scripting feature were combined to work with the aim bone script? Like, the bone would follow along the path but still attached to its parent bone, following both the path and the parental rotation AND scaling up/down when reaching the path's midpoint thus simulating foreshortening?

I know, you hate me right now don't you?

-S
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

I've thought about that myself. I get a bit dizzy when I have to mix bones and points in a script ;) But I suppose it's like mixing peanut butter with chocolate... it can be messy but it tastes so good. ;)

I'm still stuck on a math problem with the aim script. I have it so close now to do what I want it to do, key the foreshortening so I can get circular rotations. It almost works. The solution appears to be simpler than reversing the math but using a different bone as the target.

A child of the aimer bone ALWAYS follows the tip of the bone, even when scaled. That's the solution right there... uh... somehow.

So now I'm studying the "moved matrix" of a bone. I'm practicing with matrices so I can figure out how to extract the exact location of any bone, manipulate it and apply it to another bone. I think if I get a formula for that there is a lot more I can do as well.

My successes are so... tantalizing. It's like finding gold dust but you know there is a vein of gold if you dig deeper.

-vern
Post Reply