PDA

View Full Version : reverse bone rotation


giordi
03-14-2009, 06:26 PM
hi everybody!
i have a little problem with mi rig.... i connect an attribute of a control spline with a rotationZ of a bone... but the rotation is not what i want..the rotation is reverse , how can i reverse this rotation?? with expression?

PEN
03-14-2009, 07:12 PM
I'm guessing this is Maya so you will need a multiply divide node to invert the connection. If it is in Max then you can use a "-" sign in front of the expression in a parameter wire.

giordi
03-14-2009, 07:55 PM
sorry , i'm a maya user :-(

c000be
03-15-2009, 05:38 AM
in maya you can still use a negative/ "-" for the multiply/divide symbol you can hook up in the hypershade upstream/downstream, and then assign the degree to which you want one thing to affect the other via the M/D node using a negative number >> in this case, double click the node, and figure out how much one input affects the other using a negative value instead.

BoostAbuse
03-15-2009, 06:03 AM
reverse node would give you the same effect.

connect your rotateZ channel of your controller to inputZ of the reverse node.
connect outputZ channel to rotateZ channel of your joint.

voila, you will have the reverse rotation.

giordi
03-15-2009, 09:26 AM
sorry but i don't understand :-)

i have done a little shot of my problem

http://img14.imageshack.us/img14/1971/immagine2i.png (http://img14.imageshack.us/my.php?image=immagine2i.png)

wheni i increse the phalanx 1 attribut i want that the bone go down

anoopak
03-15-2009, 10:33 AM
hi,
From what u told i understood that u are using direct connection from the attribute to the rotate Z of the finger joint.The desired behavior can be achieved by using a multiplyDivide node in between the control and the joint.Follow the below procedure
1.Break the existing connection in the rotate Z of the joint
2.Create a multiplyDivide node either from the Utilities>general utilities tab of the hypershade or by typing the command "createNode multiplyDivide" in commandline or scriptEditor.
3.connect the phalanx1 attribute of the controller to the input1X of the multiplyDivide
4.Enter a value of -1 in the input2X of the multiplyDivide.
5.Connect the outputX of multiplyDivide to rotateZ of the joint

Polimeno
03-16-2009, 06:24 AM
i think you can easily solve your problem by editing the min/max/default values...eg :

min -60
max 60
default 0

so,
negative value rotates down and positive rotates up.

anoopak
03-16-2009, 07:07 AM
hi,
i hope u read what his requirement was.It was not about just getting positive and negative rotations...but he wanted the bone to rotate down when the phalanx1 value increases.(ie) for positive value he needs the desired behavior.So i think adding a multiplyDivide is the easiest method to get the positive rotation

BoostAbuse
03-16-2009, 02:43 PM
Another option which is probably simpler anyways is just invert your local rotation axis. Flip that to a reverse (not sure which rotation order or orientation you are using so can't really say which you'd need to flip) and you'll swap it to rotate negative when the value increases.

giordi
03-16-2009, 04:59 PM
hi,
From what u told i understood that u are using direct connection from the attribute to the rotate Z of the finger joint.The desired behavior can be achieved by using a multiplyDivide node in between the control and the joint.Follow the below procedure
1.Break the existing connection in the rotate Z of the joint
2.Create a multiplyDivide node either from the Utilities>general utilities tab of the hypershade or by typing the command "createNode multiplyDivide" in commandline or scriptEditor.
3.connect the phalanx1 attribute of the controller to the input1X of the multiplyDivide
4.Enter a value of -1 in the input2X of the multiplyDivide.
5.Connect the outputX of multiplyDivide to rotateZ of the joint

tx a lot!! it works great!!
but i have another question.... i create 1 attribute for any joint...because i want controll all by an attribute... but .... before this i create a fist attribute and if i want that the phalanx attribute work i must group the bone.... have you an idea ?

CGTalk Moderation
03-16-2009, 04:59 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.