home |  downloads |  help  |  forum  |  contact us 
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2013, 03:46:23 PM

Login with username, password and session length
Search:     Advanced search
fragMOTION 1.2.2 Released!
2787 Posts in 689 Topics by 788 Members
Latest Member: cliffordbryant4145
* Home Help Search Login Register
+  Fragmosoft Forum
|-+  fragMOTION
| |-+  Scripting
| | |-+  Help needed: RotationX for selected row keys
« previous next »
Pages: [1] Go Down Print
Author Topic: Help needed: RotationX for selected row keys  (Read 4378 times)
abramedia
Newbie
**
Posts: 1


View Profile
Help needed: RotationX for selected row keys
« on: September 03, 2007, 05:52:17 AM »

i got some bvh's from truebones.com. these don't work correct in fragmotion. i need to rotate some bones, for example lShldr by 30 degrees.

how can i do this via skript?

rotationX(mtx.m) = rotationX(mtx.m) - 90;   Huh gives an error

any ideas?

thanks for your help

Stephan
Logged
fragmo
Administrator
Not A Newbie
*****
Posts: 10664



View Profile
Re: Help needed: RotationX for selected row keys
« Reply #1 on: September 03, 2007, 11:13:07 AM »

try this:

mtx = matrixLib.multiply(mtx, matrixLib.rotationX( angle in radians ));
Logged
Rex
Sr. Member
****
Posts: 141


Out on the Range it's rough; no smiling allowed...


View Profile WWW
Re: Help needed: RotationX for selected row keys
« Reply #2 on: September 05, 2007, 08:08:57 AM »

Great tidbit, Dave!   This seems to be for world coordinate matrix as well? my bad....been playing with it, well, seems Worldish when it rotates incrementally.  lol.

Thanks.
« Last Edit: September 05, 2007, 10:31:16 AM by Rex » Logged
Coty
Newbie
**
Posts: 37


View Profile
Re: Help needed: RotationX for selected row keys
« Reply #3 on: September 05, 2007, 04:31:32 PM »

try this:

mtx = matrixLib.multiply(mtx, matrixLib.rotationX( angle in radians ));


Yes thanks Fragmo! This was what I was asking about before. This saves me a ton of animation editing...

Smiley
Logged
fragmo
Administrator
Not A Newbie
*****
Posts: 10664



View Profile
Re: Help needed: RotationX for selected row keys
« Reply #4 on: September 05, 2007, 05:30:45 PM »

Quote
This seems to be for world coordinate matrix as well?

Now that you mention it,  I have added an option to change the key values in world space for the next version.  The current version uses values that are relative to the bone.
Logged
Rex
Sr. Member
****
Posts: 141


Out on the Range it's rough; no smiling allowed...


View Profile WWW
Re: Help needed: RotationX for selected row keys
« Reply #5 on: September 06, 2007, 05:11:31 AM »

...hard for me to tell, sometimes; most of the nodes in my skeletons are aligned to worldcoordinates, to accept bvh files...thanks for heads up.  Sure seemed to rotate the shoulder or collar[at an angle] in world space coordinates?  oh well....my first dabblings with it, great script!

...unfortunately, for legacy file issues and such, I have frozen my fragMO build at v.87 Sad.....don't get any of the new goodies....if there is a way to run/install it on a flash drive or stick let me know, I'd love to keep up with the current build somehow without resorting to another CPU.
« Last Edit: September 06, 2007, 05:13:18 AM by Rex » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Fragmosoft Forum | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!