Mickley
02-11-2003, 10:41 AM
I have a joint Lets say Joint01, which is able of rotating on Y and on Z axis (lets say from -30 to 30 deg in each direction).
Now I got in a situation where I need to have a separate atribute for rotation. Which will rotate Joint01 in Y and Z direction simultaneously. Lets say I've created attribute called Rotate_YZ.
Now behold..!!THE QUESTION...!!
How Expression for the new attribute should look, if I want it:
1. to control YZ rotation of the Joint 01 from (0,0,0) to (0,30,30)
2. To be controlled by standard Joint01.rotateY and Joint01.rotateZ attributes.
For example if I type in in a chanel box for rotateZ=20 and rotateY=20. So Rotate_YZ will automatically turn 20 as well. And vice versa.
It didn't seem to me horribly complicated at first.
I dug a documentation for two hours, but my expressions are not doing any good yet. (they stink):shrug: :thumbsdow
Now I'm exausted and asking for your guys (Profi's) help.
Thank you in advance.
P.S. Yep. And another condition: tveaking a single attribute shouldn't make any difference for Rotate_YZ. Like if I do RotateZ=20, RotateY=0, then Rotate_YZ stays unaffected (0)
Now I got in a situation where I need to have a separate atribute for rotation. Which will rotate Joint01 in Y and Z direction simultaneously. Lets say I've created attribute called Rotate_YZ.
Now behold..!!THE QUESTION...!!
How Expression for the new attribute should look, if I want it:
1. to control YZ rotation of the Joint 01 from (0,0,0) to (0,30,30)
2. To be controlled by standard Joint01.rotateY and Joint01.rotateZ attributes.
For example if I type in in a chanel box for rotateZ=20 and rotateY=20. So Rotate_YZ will automatically turn 20 as well. And vice versa.
It didn't seem to me horribly complicated at first.
I dug a documentation for two hours, but my expressions are not doing any good yet. (they stink):shrug: :thumbsdow
Now I'm exausted and asking for your guys (Profi's) help.
Thank you in advance.
P.S. Yep. And another condition: tveaking a single attribute shouldn't make any difference for Rotate_YZ. Like if I do RotateZ=20, RotateY=0, then Rotate_YZ stays unaffected (0)
