Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [quaternion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
142 views

Can you split all connected bones and change them all to a ''keep offset'' parent automatically in a rig?

Like I do here, but automatically.
Oenkel's user avatar
  • 23
0 votes
1 answer
20 views

Set two objects with the same rotation quaternion but their rotation euler are different

As far as I understand, Euler angles and quaternions are two approaches for rotation. So I suppose that if the directions of two objects are set by the same quaternion then their Euler angles are ...
Ta Thanh Dinh's user avatar
1 vote
1 answer
111 views

Problem with weird rotations of objects moving along Mobius strip paths (animated using Blender Python API)

This is a follow up question to my previous one regarding objects moving in a circle (which was a simple test case I had put together). I really appreciate the answer and detailed explanation provided ...
Deep Shen's user avatar
1 vote
1 answer
76 views

Animating multiple objects moving along a path with the right orientations (using bpy and Python)

I am a bit of a Blender novice and started getting into Blender using the Blender Python API (bpy). I am trying to animate multiple objects on a set of paths defined by mathematical equations (the ...
Deep Shen's user avatar
1 vote
1 answer
33 views

How to set the axis of blender so that it is consistent with the rotation direction of the sensor?

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. ...
Handsome Fish's user avatar
0 votes
0 answers
36 views

Incomplete rotation from imported FBX

I'm trying to import an fbx to Blender, with one simple animation (exported from Moho). When I export it from Moho, I can open it in tools such as FBX Converter and Windows 3D viewer, and the ...
thesecretofshadow's user avatar
0 votes
0 answers
171 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
22 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
40 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
1 vote
3 answers
60 views

Server json Blender crashes

Can someone help me understand why this code: ...
Diego Parbuono's user avatar
2 votes
0 answers
187 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
349 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
300 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
195 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
2 votes
1 answer
1k 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
174 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
624 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
527 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
125 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
393 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
31 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
366 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,992
0 votes
0 answers
94 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
217 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
3k 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
143 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
640 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
505 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
212 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
376 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
638 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
327 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
888 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
690 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
5k 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
756 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
101 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
381 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
216 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
264 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
  • 602
3 votes
1 answer
438 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
712 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,501
2 votes
1 answer
692 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
  • 27.1k
2 votes
1 answer
1k 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
782 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,501
1 vote
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,501
0 votes
1 answer
1k 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
  • 142