I made a little progress on the simple cartoon squash deformer. So far it likes when nurbs is created so that it middle area has clean horizontal spans with the poles not at the centers.
This time around i added some gradual behavior of the squashing in vertical direction.
I'll post some of my thought process to getting to the result. But basically i wanted cvs near the center to not move during squashing as much as cvs far away from center.
Here's some of my thought process:
Here are some of the results including the code snippet to updating the compute of the node's cpp file.
before (trying out to see if would squash when rotated):
after (cool it looks like it does):
Hope you find this helpful.
(tip: it was helpful to actually have maya open when trying to figure out some math stuff, basically i liked being able to talk out the challenge while seeing what it is i'm working with)