Questions tagged [quaternion]

The tag has no usage guidance.

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

Get local child bone rotation using Python

I'm looking to get the local rotations of bones using Python, in other words given a parent and a child bone, the child bone's rotation off of the parent bone. I saw this post:Get bone rotation in ...
0
votes
1answer
28 views

How do I rotate by a given pitch, roll, yaw, in the correct order using quaternions?

I have a panorama image mapped to a sphere which is rotated by some amount in the 3D scene. I have the 2D image coordinates of a point on the panorama which I would like to mark in 3D by placing an ...
0
votes
1answer
11 views

Why FloatVectorProperty of subtype 'QUATERNION' is of type EULER?

The FloatVectorProperty gets subtype argument to change the data type of float vector. After setting this argument to subtype <...
1
vote
2answers
105 views

Why does my rig deform when rotating it?

this is my first time posting a question on online forums. I am relatively new to blender and have been working on an attack animation for the past few days. I've been using the Mr. Mannequin add-on ...
0
votes
0answers
17 views

How to move bones with quaternions on realdata

sorry for stupid questions, I am new on blender.. My question is how can i move bones when i recive data via serial port. So i get quaternion via serial port and want to set the values on the bones. i ...
0
votes
3answers
58 views

How to use Copy Rotation constraint to copy Quaternion rotation?

There is no Quaternion in Copy Rotation's Order option: What happens when the owner of the constraint has quaternion rotation ...
0
votes
0answers
17 views

How to calculate rotation for Mesh2 based on identical Mesh1 and its local vertices data?

I have two identical meshes. Their rotation is already applied in Blender (0,0,0). I would like to restore rotation for mesh2 based on mesh1 as a reference object. I have a python script that finds ...
1
vote
1answer
61 views

matrix_basis doesn't set to the values I am setting it to

So, I'm importing animation data from a text file, containing the bonematrix for each frame and each bone. I am simply setting the matrix_basis of each bone and adding a keyframe, and repeating. The ...
1
vote
1answer
104 views

How do I make my pose symmetric?

I have already created the armature for this model and they are in the exact positions that I want them to be, so the armature itself doesn't need to be edited. However, the issue is that when using x-...
0
votes
1answer
32 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
102 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
159 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
51 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
100 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
158 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
77 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
375 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
371 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
74 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 ...
4
votes
3answers
811 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
169 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
43 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
107 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
48 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
93 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
157 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
319 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
136 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
93 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
410 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
206 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
622 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
283 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
448 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
961 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
79 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
168 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
1k 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
354 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
723 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
545 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
246 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
133 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
249 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
447 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
470 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
5k 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
832 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, ...