1
$\begingroup$

I am a beginner in blender. I use the serial port to connect the posture sensor with the blender. Now I have a problem: I rotate sensor around the Z axis, but in blender it rotates around the Y axis. Let the sensor rotate around the Y axis, but in blender it rotates around the Z axis. But rotate around the X axis is correct. I am using quaternion to control the bones. So, what should I change?

This is a gif of rotating the sensor around the Z axis enter image description here This is a gif of rotating the sensor around the Y axis enter image description here This is a gif of rotating the sensor around the X axis enter image description here and this is my sensor: enter image description here

$\endgroup$
1
  • $\begingroup$ Hello could you please show some screenshots? $\endgroup$
    – moonboots
    Commented Feb 20 at 7:24

1 Answer 1

2
$\begingroup$

You can create a duplicate of the bone, in pose mode hover over the W quaternion value of the original bone, right click and choose "Copy as new driver", then select the new bone, hover over its W Quat value, right click and choose "Paste driver.

Repeat for X values.

Repeat for Y and Z inverting the values (paste Y on Z and Z on Y).

Then you can hide the first bone and use the new one.

enter image description here

$\endgroup$
3
  • $\begingroup$ This method can solve the problem :D. But this means that I will assign the value of the Y-axis to the Z-axis. Does this make sense? $\endgroup$ Commented Feb 20 at 10:05
  • $\begingroup$ I don't know.. would parenting to a reoriented Empty give you transforms in the Empty's space? $\endgroup$
    – Robin Betts
    Commented Feb 20 at 10:37
  • $\begingroup$ It's just about naming conventions in the information chain, but you will assign the Y values you want on Y axis. Names are just names. There may be some cases in which you will need inverted values: in this case just edit the driver as scripted expression and add a minus sign in front of the variable. $\endgroup$ Commented Feb 20 at 10:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .