[Closed] Curve Editor issue?
hi all I’m back again for more questions :hmm:, so far this is what I did:
> I created a biped in CS
> Animated the Bip01 L Thigh
> Open up the curve editor and under transform I see all my curves (Red = rotate X, Green = rotate Y, and Blue = rotate Z)
> I selected rotate z curve on frame 5 and on my lower left curve editor window I see two value [5] [119.255] (Time and Rotation value I think).
Now for the $1,000,000 question is how do I change my rotation value in rotate z value (119.255) to 180.0 using max scripts. Any tip or advice would be appreciated thanks.
Test Code:
for o in selection do
(
tmpVal = o.transform.controller.Biped_SubAnim
print tmpVal;
)
and all i get is 0.0, do I need to add “z_rotation” but where?
I never work with bipeds but this might will help.
“o” is an scene object right? Then maybe you should add $ in front of the o.transform… line, like this:
tmpVal = $o.transform.controller.Biped_SubAnim
I tried that already and it didnt work, basically what I need to find out is how to get the curve info (rotate z) and then modify. The problem is I dont know how to get the rotate z (in Curve Editor)…thanks for the reply tho…anybody?
Originally posted by Technofreak
[B]hi all I’m back again for more questions :hmm:, so far this is what I did:
> I created a biped in CS
> Animated the Bip01 L Thigh
> Open up the curve editor and under transform I see all my curves (Red = rotate X, Green = rotate Y, and Blue = rotate Z)
> I selected rotate z curve on frame 5 and on my lower left curve editor window I see two value [5] [119.255] (Time and Rotation value I think).Now for the $1,000,000 question is how do I change my rotation value in rotate z value (119.255) to 180.0 using max scripts. Any tip or advice would be appreciated thanks.
Test Code:
for o in selection do
(
tmpVal = o.transform.controller.Biped_SubAnim
print tmpVal;)
and all i get is 0.0, do I need to add “z_rotation” but where? [/B]
Don’t try to use the general MAXScript methods.
Go to the Contents tab, find the “MAXScript Extensions for character studio” and use any methods you can find inside…
For example, according to “Biped Transform Methods” topic:
biped.setTransform $‘Bip01 R UpperArm’ #rotation (quat 0 -0.841564 1 0.670882) false
Obviously, you will have to figure out the correct quaternion value to submit (in world coordinates). The false parameter means “don’t set a key”
hey Bobo thanks for the reply, I figured that out earlier but now the question is how would I move my curves (xyz) in my curve editor using max scripts if you check on your left bottom curve editor window you’ll see two values there [5][140.898] basically (5 is basically the time and 140.898 is the z curve value)what i want to do is change that value to let say [180] in Z axis. My scriptListener is open too when I moved my keys but its not giving me anything. I checked the documentation already but I didnt find anytihng. Thanks for the reply tho anymore tips or advice? (is this even possible in Max?)
Thanks all
Technofreak,
This example should help you on the way…
For more information check out the online reference. You might need to get used to the way the mxs helpfile works, but all information you need is in there
- Martijn