Questions tagged [quaternion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
54 views

Blender import camera from COLMAP has wrong direction

I have the image.txt files from colmap, which includes the quaterion(QW, QX, Qy, QZ) and the translation(tx, ty, yz). I use the following code to do the transformation, but the direction of the camera ...
Jin Gordon's user avatar
0 votes
0 answers
20 views

Cameras with opposite positions

I have a series of camera data, including the quaternion and position. When I create cameras, I found the position of all the cameras are in the opposite direction (The starting point and the ending ...
Jin Gordon's user avatar
2 votes
0 answers
37 views

Given an object with two locations and orientations, how do I find the rotation axis?

I have an object that I want to animate between two orientations (and locations). I know that rotation axis is close to one end of the object, but not exactly where. How can I figure out where the ...
tml's user avatar
  • 121
0 votes
0 answers
69 views

Extracting Joint angles of FBX file

I recorded some motion capture data with a markerless tracking system. All the data needed for the animation is stored in a .fbx file. Overall I am interested in joint angles. The ankle joint angles ...
Lea's user avatar
  • 1
1 vote
3 answers
54 views

Server json Blender crashes

Can someone help me understand why this code: ...
Diego Parbuono's user avatar
2 votes
0 answers
143 views

Is there a way to make blender use slerp interpolation when keyframing a rotation using quaternion?

I'm trying to get constant interpolation between keyframes when I rotate a bone or object using quaternion. I already tried linear interpolation mode, however it still does not automatically give ...
Edgar Vanegas's user avatar
1 vote
1 answer
307 views

Transfer orientation of points to bone armature

I am trying to transfer position of 2 points into a bone, so that the bone has the same direction as the 2 points I tried it with this initial position this is the output after running the code this ...
Tryan Aditya's user avatar
1 vote
0 answers
237 views

How to properly combine Rotation Quaternion with Matrix for viewport/RegionView3D manipulation?

(Copy and pasted it from another place since I wasnt getting any replies) Hi, I am working on an addon that uses external application's touch gesture to send information to a socket, which then is ...
MercuryRising's user avatar
0 votes
0 answers
181 views

How to properly apply rotation on pose bones

First off, gonna admit it and say i absolutely suck at geometry and at Blender's scripting, so excuse if i made dumb mistakes. I have a quaternion and a position, i need to apply them to the pose ...
Nick0's user avatar
  • 1
1 vote
1 answer
884 views

How do I convert a rotation matrix into the correct quaternion for particle rotation?

I'm trying to render fractals using a particle system. I generated the one on the left using graphics programming. The one on the right is rendered using a particle system. The rotation matrix ...
jonasmangelschots's user avatar
0 votes
1 answer
149 views

How to find locations of 3D points projected to panorama? (rotation order problem)

I'm trying to find the 2D position of where a 3D point will be when projected to an equirectangular panoramic render. I have a function for doing this with perspective cameras but this doesn't work ...
mugwortz's user avatar
0 votes
1 answer
521 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 ...
Jackie 's user avatar
1 vote
1 answer
431 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 ...
mugwortz's user avatar
1 vote
1 answer
109 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 <...
MohammadHossein Jamshidi's user avatar
1 vote
2 answers
359 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 ...
SilverRisers's user avatar
0 votes
0 answers
30 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 ...
MR_n's user avatar
  • 1
0 votes
3 answers
335 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 ...
Lai Yu-Hsuan's user avatar
  • 1,972
0 votes
0 answers
77 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 ...
ATsok's user avatar
  • 1
1 vote
1 answer
173 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 ...
Wyatt's user avatar
  • 11
1 vote
1 answer
2k 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-...
Johnny_Has's user avatar
0 votes
1 answer
135 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"...
WillSmithsRobot's user avatar
1 vote
0 answers
511 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 ...
sayanel's user avatar
  • 111
1 vote
0 answers
424 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 ...
Millhow's user avatar
  • 31
0 votes
1 answer
198 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. ...
Derek Kwas's user avatar
0 votes
1 answer
314 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 ...
Derek Kwas's user avatar
0 votes
2 answers
599 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 ...
Alphi Henry's user avatar
1 vote
1 answer
293 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 ...
Alphi Henry's user avatar
2 votes
1 answer
845 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 ...
Alphi Henry's user avatar
1 vote
2 answers
2k 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: ...
Alphi Henry's user avatar
0 votes
1 answer
533 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 ...
AuStephen's user avatar
6 votes
3 answers
4k 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 ...
Andrey Sokolov's user avatar
0 votes
1 answer
652 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, ...
drew_birch13's user avatar
1 vote
0 answers
96 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. ...
DjEKI's user avatar
  • 53
1 vote
1 answer
332 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 ...
Chryfi's user avatar
  • 131
2 votes
0 answers
200 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 ...
GaryO's user avatar
  • 545
0 votes
0 answers
233 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....
Joehot200's user avatar
  • 592
3 votes
1 answer
370 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 ...
Daki Withanage's user avatar
0 votes
0 answers
649 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 ...
Serena Poketeen's user avatar
1 vote
0 answers
157 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 ...
Rick T's user avatar
  • 4,101
2 votes
1 answer
561 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. ...
Leander's user avatar
  • 25.8k
2 votes
1 answer
978 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 ...
Sergio Calvo's user avatar
1 vote
1 answer
663 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 ...
Rick T's user avatar
  • 4,101
0 votes
1 answer
2k 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. <...
Rick T's user avatar
  • 4,101
0 votes
1 answer
870 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 ...
Salty_Schnauzer's user avatar
0 votes
0 answers
24 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
EwwGin's user avatar
  • 132
1 vote
1 answer
969 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 ...
blablaalb's user avatar
  • 177
1 vote
0 answers
2k 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 ...
Sam Vimes's user avatar
  • 231
2 votes
1 answer
455 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 ...
Mich's user avatar
  • 151
1 vote
0 answers
2k 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 ...
thepufferfish's user avatar
0 votes
2 answers
519 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 ...
Ihab Adeel's user avatar