Questions tagged [quaternion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
27 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 ...
user avatar
1 vote
1 answer
57 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 ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
0 votes
0 answers
46 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 ...
user avatar
  • 1
0 votes
1 answer
90 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 ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
0 votes
1 answer
124 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 ...
user avatar
0 votes
1 answer
125 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 ...
user avatar
0 votes
1 answer
25 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 <...
user avatar
1 vote
2 answers
180 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
  • 1
0 votes
3 answers
120 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 ...
user avatar
  • 1,773
0 votes
0 answers
23 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 ...
user avatar
  • 1
1 vote
1 answer
74 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 ...
user avatar
  • 11
1 vote
1 answer
306 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-...
user avatar
0 votes
1 answer
42 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"...
user avatar
1 vote
0 answers
156 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 ...
user avatar
  • 111
1 vote
0 answers
202 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 ...
user avatar
  • 31
0 votes
1 answer
80 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. ...
user avatar
0 votes
1 answer
126 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 ...
user avatar
0 votes
2 answers
270 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 ...
user avatar
1 vote
1 answer
121 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 ...
user avatar
2 votes
1 answer
542 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 ...
user avatar
1 vote
2 answers
773 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: ...
user avatar
0 votes
1 answer
156 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 ...
user avatar
5 votes
3 answers
2k 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 ...
user avatar
0 votes
1 answer
288 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, ...
user avatar
1 vote
0 answers
53 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. ...
user avatar
  • 53
1 vote
1 answer
155 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 ...
user avatar
  • 31
2 votes
0 answers
90 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 ...
user avatar
  • 495
0 votes
0 answers
112 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....
user avatar
  • 572
3 votes
1 answer
213 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 ...
user avatar
0 votes
0 answers
416 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 ...
user avatar
1 vote
0 answers
138 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 ...
user avatar
  • 2,610
2 votes
1 answer
140 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. ...
user avatar
  • 24.6k
2 votes
1 answer
575 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 ...
user avatar
1 vote
1 answer
281 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 ...
user avatar
  • 2,610
0 votes
1 answer
974 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. <...
user avatar
  • 2,610
0 votes
1 answer
369 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 ...
user avatar
0 votes
0 answers
23 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
user avatar
  • 132
1 vote
1 answer
607 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 ...
user avatar
  • 167
1 vote
0 answers
1k 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 ...
user avatar
  • 215
1 vote
0 answers
100 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 ...
user avatar
2 votes
1 answer
224 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 ...
user avatar
  • 121
0 votes
0 answers
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 ...
user avatar
0 votes
2 answers
377 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 ...
user avatar
2 votes
1 answer
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 ...
user avatar
0 votes
2 answers
845 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, ...
user avatar
  • 1,555
0 votes
1 answer
612 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 ...
user avatar
  • 507
0 votes
1 answer
263 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: <...
user avatar