ourouk
Elo everyone,

it's been a long time since I didn't look at SOuP.
I have a question about "Speed" ( mag(velocity) ).

I want to calculate the speed of an object. Actually I use a simple expression that query transforms of an object at currentTime and currentTime-1 then I do a mag($vector)

Seems to work, but I would like to know if I can do the same with the computeVelocity node. I looked at some threads here but found no answer to that. I just want to input my geometry to a computeVelocity node then get the "outVelocity" from this node and plug it for example in a float "speed" attribute...

What I read didn't help me a lot...is it possible to do that with the computeVelocity? I would prefer not to use mel expressions ( with getAttr ) in fact...

thanks a lot

JeremyR
I think it calculates point velocities not transform. Im wondering if pyExpression node would help but i havent actually had a look at that one yet, just thought of it because it uses transforms, then again I could be talking through a hole in my head :)
Reply 0 0
ourouk
Yes it calculates point velocities.
My object is not deformable so any point (vertex) of it has about the same speed than my object...In fact, I thought I could use any point velocity as my object velocity...

I didn't look at pyExpression nodes...have to do that asap :)

Reply 0 0
pshipkov
Like Aikiman said - the simplest thing is to use the pyExpression node.
Reply 0 0
ourouk
Hmmm ok, pyExpression installed.
I have opened the example scenes and seems very interesting but slightly blurry for now...

What is exactly pyExpression ? Is this only one node which allow to play with object transform ?

Will look at this seriously these days...thx

thanks

Reply 0 0
Reply