Questions tagged [quaternion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

B2.9+ Offsetting local rotation of object

I've been running through the forums and documentation, and would appreciate any help! I want to offset the rotation of an object by [Vector3(X, Y, Z)] I need to add or subtract the "radians"...
1
vote
0answers
29 views

How to change default bone rotation from Quaternion (WXYZ) to Euler (XYZ)?

For all the bone of an armature in pose mode, in the item/transform menu and on object properties/transform, the default mode is alway Quaternion (WXYZ). How can I change that to Euler XYZ for all ...
1
vote
0answers
50 views

Convert quaternion from Blender to Unity

I want to convert an euler or quaternion rotation from Blender to an euler or quaternion rotation on Unity. The goal is not to export an object from Blender to Unity, but only to convert the rotation ...
0
votes
1answer
37 views

Front Flip Animation Bones Rotate After A Certain Degree

I have this front flip animation that when I rotate it about the X axis as shown in the video linked below, the root and target bones flip all the way back around and then get to the finish pose. ...
0
votes
1answer
61 views

Front Flip Animation Messed Up Due To Quaternion

I made a front flip animation for my character however when I play the animation, the character goes to the keyframes, but once it gets past the second to last keyframe and goes to the final pose, it ...
0
votes
2answers
71 views

Python, How to Roll a Pose Bone along a Vector in PoseMode?

I'm stuck, Trying to roll a pose bone while staying in the Head and Tail vector. When I use axis angle or any other rotation, it doesn't stay in place and it goes off its vector. Vector shouldn't ...
1
vote
1answer
51 views

Python, How to Convert Rotations of T-pose Pose Bones in Armature 1 to Pose Bones in Armature 2? Finding Rotational difference

The goal is to get the rotational difference of the bones between Armature 1 and Armature 2 in its T-pose(not exactly), then apply the difference to a pose of Armature 2. The purpose is so the model ...
2
votes
1answer
157 views

Python, How to get pose bone to rotate with another pose bone from a different armature? Finding Rotational difference

I have two Armatures with different bone structure. The goal is to get the rotational difference of one bone from a one Armature and translate it to the bone of the other Armature. Code **For a ...
1
vote
2answers
119 views

Python How to make pose bone rotation toward a point?

I have the pose bone at a location and I would like for it to rotate to face a point Code: ...
0
votes
1answer
21 views

Copy Transform Constraint Wrong Rotation

I have created an empty to hold the relation of the resting position of a bone to a weapon. I am setting a copy transform constraint on the hand IK with this empty as the target. The constraint ...
2
votes
1answer
196 views

How to convert rotation_axis_angle to euler or quaternion via Python?

For my script I need to get the same result that Array modifier produces with Object Offset. In particular, I need to calculate rotation difference between two objects' rotations despite their ...
0
votes
1answer
78 views

Subtract quaternions in python?

how do you subtract two quaternions, in blender scripting? I've tried allot of things and none of them work, quaternion1 * quaternion2.inverted() does not work inverted gives some random answer, ...
1
vote
0answers
35 views

Quaternion - I need to subtract the value from the parent bone. How I can calculate that?

I am getting quaternion data from my sensors. I use Python and Arduino. "Bone 1" is the shoulder. Bone2 is the upper arm, Bone3 is the forearm, and Bone4 is the hand. Each bone has a sensor. ...
1
vote
1answer
71 views

Bake action with euler rotation instead of quaternion

there is a problem that baking actions with Euler rotation creates a flickering rotation in the keyframes. The problem can be solved by choosing quaternion as rotation but I need to export the ...
1
vote
0answers
24 views

Quaternions (still) don't interp by slerp?

I've seen https://developer.blender.org/T45473 where it's pointed out that if you have two quaternion rotation keyframes in Blender, it doesn't interp between them properly using slerp -- instead it ...
0
votes
0answers
83 views

Is it possible to set the default rotation mode?

I'd like to set the default rotation mode to Quaternion. Right now new objects have their rotation mode set to 'XYZ Euler'. When hovering over this entry in the drop down menu, it says '(default)'. ...
0
votes
0answers
60 views

Quaternion does not interpolate by the shortest route

I am rotating my camera. I have two rotations, both quaternions. The big white cube (which I added as refernece) can be seen in both frames, as proof that this rotation is not significant. from: {0....
3
votes
1answer
108 views

Damp the movement of an animation curve

I am quite new to Blender. I am writing a script for a scientific study. So I want to do it in the script change the angles of a motion in order to have quantifiable data. I have been struggling for ...
0
votes
0answers
202 views

Blender to unity fix armature deform super problem

I have a super problem trying to port a created mod in blender to unity, the mod was done using a game template (cityskilines citizen armature template). I bind my model to armature, transfer and ...
1
vote
0answers
134 views

Looping over an objects indices while performing an operation / calculation using Animation Nodes - attached blend file

I'm having trouble looping over an objects (the cylinder) polygon indices while performing an operation / calculation on them. I created an animation in Octave, (and the calculations are correct I've ...
2
votes
1answer
52 views

Matrix from quaternion produces a different orientation

I want to convert a quaternion to a matrix and back again. The result has a different orientation than the quaternion from the beginning. To reproduce the problem, set a quaternion. ...
2
votes
1answer
265 views

Set initial position and rotation of a bone (python)

I'm making a script for import models from a game. This game has inital position and rotation for each bone. If I load the model without rotating bones, it looks like this: and if I load rotations it ...
1
vote
1answer
155 views

How can I multiply a quaternion and a list of vectors that represent xyz vertices of an object

How can I multiply a quaternion and a list of vectors together (which will represent the x,y,z vertices of an object)? The error I get is: Error: Quaternion multiplication: not supported between ...
0
votes
1answer
288 views

Normalize / Create a unit quaternion number / calculation using Python and Blender

I'm trying to work with quaternion math in Blender 2.82a and Python I need to normalize a quaternion number in Blender 2.82a using Python before I do calculations on it but I'm getting an error. <...
0
votes
1answer
172 views

Can't fully rotate object with quarternion rotation enabled

In the process of animating, I have come to realise that my rig is doing a strange twirl, which isn't desired. It's very easy to emulate, simply open a new file and set the cube's rotation setting to ...
0
votes
0answers
22 views

(Resolved) Quaternion1 step rotation to Quaternion2

So I have an object that I want to rotate step by step to match another object rotation, at first not knowing any better i did like so..: Step=0.1 Q1=Q1-(Q1-Q2)Step . What should be the formula? :p
1
vote
1answer
268 views

Rotate object's mesh so it matches another object's rotation

Suppose we have two cube objects: Obj1 and Obj2. Let's say Obj1's Euler rotation is Vector((0,0,0)) and Obj2's rotation is ...
1
vote
0answers
690 views

How to get the proper rotation difference between two vectors using quaternions?

I'm trying to calculate the vector difference between a face normal and an object. This is similar to some other questions, such as this one: Python script get face normal, then set it as another ...
1
vote
0answers
52 views

Does deleting one quaternion rotation channel affect angle of rotation along other axes?

When animating I usually have my bones set up with quaternion rotations. Sometimes when I key a bone for an animation, I want to delete the rotation along a specific axis. What I have done till now is ...
2
votes
1answer
113 views

How To Get A Quaternion Camera Rotation That Is Independent Of View Orientation

Here is the problem, If I roll the view 90 degrees using Shift + 4 or Shift + 6. All of the view controls stop working correctly. Rotating with the mouse left and right causes camera rotation up and ...
0
votes
0answers
793 views

What is the relationship between quaternion's value w, the (x,y,z) point, and the rotation they represent?

From what I understood, quaternion rotations could essentially be described as a vector coming from an object's location and going to (x,y,z) and W is a value that determines the object's rotation ...
0
votes
2answers
296 views

Is it possible to save the Euler rotations as Quaternions without loss of data?

Long story short is that, that I made an animation using Euler rotation but during cleaning the graph I realized that the graph and the axis got mixed up, eg. x and y axis both gave more or less the ...
2
votes
1answer
2k views

Set the Rotation (in Quaternion WXZY which is calculated by two vectors) of a bone using API 2.7.9

Details of the problem: I already have two vectors A and B (A is converted to B by a certain rotation), and I can now calculate the quaternion of its rotation. Also insert a bone in the blender so ...
0
votes
2answers
584 views

Bone rotation quaternion issues

I am attempting to make my character do a backflip. I rotate the hips 360º in the X axis with a couple of keyframes, then watch the animation. It doesn't work. Either it doesn't seem to move at all, ...
0
votes
1answer
487 views

How to use quaternions coming from ros?

I have a quaternion coming from a ros tf tree that is representing the orientation of my camera. I am trying to set these values for a blender script to render a scene, but the camera looks into the ...
0
votes
1answer
215 views

obj.rayCast() not working as intended

In the game engine, I've got a function which uses rayCast in asteroids. It doesn't work as intended, as even with x-ray turned on, it often doesn't see through objects without the desired property: <...
0
votes
0answers
110 views

How To Ensure All Objects on Same Axis?

I'm making something in Blender and porting it into Unity as an FBX. The armature is a series of connected bones for each segment/ball. The first segment will move side to side when I rotate on the Y ...
1
vote
0answers
214 views

Object shifts about after changing XYZ Euler to Quaternion (WXYZ)

I have a problem when I change the rotation type of my object (3D View > Properties region (N) > Transform panel > Rotation) from XYZ Euler to Quaternion (WXYZ) to avoid a gimbal lock problem with a ...
2
votes
1answer
401 views

What is relation between edit_bone roll and and pose.bone rotation_quaternion?

I have two slightly different rigs (two armatures from different sources) and trying to transfer rotations between corresponding bones, from one armature to another (retarget current pose at some ...
2
votes
2answers
408 views

Exporting trouble. Bone tail and head positions change quaternion rotation

I managed to program a cute script to export animated models for Play Station Portable. If all the bones are aligned with Y pointing up, It works perfect, But animating the models that way is a bit ...
2
votes
3answers
4k views

Getting local rotation in python

I'm using blender to visualize data from an orientation sensor, and would like to display the current rotation, but about the local axis. I can get the local axis just fine, but what I'm interested in ...
1
vote
1answer
653 views

Recreate to_track_quat with two vectors using python

i've been asked to recreate the to_track_quat function of mathutils to create a quaternion that looks from point a to point b, but so far i've been un successful. I'm using in blender two objects, ...
2
votes
1answer
148 views

mathutils.Matrix's position returns an empty vector instead of the actual position

In 4x4 matrices, the values of the last row are usually the position, however in blender, when scripting returns 0, even though when i display the matrix on the console, the values are shown properly (...
1
vote
1answer
298 views

Exporting bones; transformation of quaternions necessary?

I'm writing a small addon to export armatures and actions to an in-house rendering engine. The rendering engine uses a traditional OpenGL-style coordinate system, with +Y representing UP and -Z ...
4
votes
0answers
240 views

Is there a way to make blender using slerp on quaternions?

I'm now working on a blender importer addon. I have managed to import models and animations extracted from some game into blender successfully. The pose looks perfect most of the time, but at some ...
1
vote
0answers
103 views

Quaternions, txt file parsing, animation/graphing [closed]

Here's the setup: I have text files that have timestamped translation (X, Y, Z) and rotation (X, Y, Z, W) data. I need to turn this data into something useful. A graph or an animation would be ...
3
votes
1answer
836 views

Why does Quaternion.rotation_difference() always return 12.666471 for x-rotation?

I tried to calculate the angle between two vectors. First 3 Quaternion rotations (qx,qy,qz) are defined and multiplied to q. A vector v (1,0,0) is rotated by q. From the vectors q and qrot I want ...
1
vote
3answers
445 views

How can X, Y, Z and W go above one in a quaternion animation on Blender?

I am trying to import a collada file generated by Maya on Blender and that file was exported using what I think is the correct representation of a quaternion (x, y, z and w elements are between 0 and ...
0
votes
2answers
3k views

Converting Quaternions to Euler in the Graph Editor

I have imported a camera animation that came from a collada file. When I open the graph editor I see the rotations as quaternions. How do I convert that to euler. I need to see euler in the Graph ...
9
votes
1answer
8k views

When should I use Quaternion (WXYZ) and how should I handle the W Quaternion Rotation?

As I (seem to) know from some comments the use of Quaternion or Euler depends on what we want to animate and that Quaternion can handle very complex animation and avoid problems which sometimes occur ...