Kornelius
Hello everybody! I've got a mesh that I want to deform with a bend deformer as it goes faster.

computeVelocity node gives me velocityPP but I need only one single scalar to plug into blend1.curvature.
 
I can't figure how to extrapolate just a single value from velocityPP.
Any ideas?

Cheers!!
Simo.
plarson
On the Bend deformer you could do a getAttr computeVelocity1.outVelocityPP in an expression.  Then normalize the vector for one point. And perhaps use that velocity magnitude in a linstep for the Bend's envelope.
Reply 0 0
Kornelius
Thanks plars!!  your solution works like a charm.
I was wondering though, if it's possible to achieve the result without using the getAttr command and going fully procedural.
(I'll still use your solution for my project, my question it's only for knowledge's sake...)
Cheers!
Simo.
Reply 0 0
plarson
You could use a Point node to take the outVelocityPP, but you'd still need to normalize in the Point script and setAttr to the bend envelope.

If you want a setup that involves only connecting nodes without any additional script. You could normalize the vector with some multiplyDivide nodes. Or with these math nodes. But I'm not sure how to extract a non-array value or vector connection from outVelocityPP to be connected to a multiplyDivide. It's an interesting question. Soup has a lot of great array conversion nodes, but I haven't gotten them to output values that I can connect directly to a multiplyDivide. There might be a simple way that I just don't know about tho.
Reply 0 0
Kornelius
Hi plars!! That was indeed what I wanted to find out, I've tried with the "arrayToMulti" node, to take out only one of the vector, but apparently doesn't work with the velocityPP array.
I've hence tried to Isolate one single vertex of the mesh with a "group" node, and it was working, but I wasn't able to forward the velocity value through the group node. (there is a "velocityPPin" but I'm not able to take it out from the "group" node, probably storing the velocuity in to the mesh as color per vertex is the way!!)
Reply 0 0
Reply