Questions tagged [matrix]

The tag has no usage guidance.

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

mocap, bone(s) rotation re-target with python

I have two armatures, source and target, for each bone I want mapped from source I add an empty parented as bone (tail), for each bone in target I want mapped I add a copy-rotation (global) constraint ...
0
votes
0answers
34 views

Getting correct particle location with Python

I'm trying to export the transforms of hair-type particles with Python, like this: ...
0
votes
0answers
20 views

Parent without parent rotation and rotate around local z (script)

I have a rotating object that appears wobbly because it is bent like a tent going inwards and at a slight angle. I am trying to get it to parent to an empty object which I then rotate locally around ...
0
votes
0answers
32 views

recreating a scene from THE MATRIX

for a video project I am trying to re-create a scene from the Matrix. https://www.google.com/url?sa=i&url=https%3A%2F%2Fgfycat.com%2Fru%2Fhelpfullavishboilweevil-virtualworlds-thematrix-fairuse&...
0
votes
1answer
28 views

Converting program specific functions to Blender in python

I'm sorry the title is vague, but I couldn't come up with a summary of my problem. I am trying to convert a script made for a model viewing tool called Noesis to Blender. I'm stuck on some Noesis ...
1
vote
0answers
51 views

How does blender scaling works?

I am new to blender. I have been looking into a github code, and trying to understand the operations. I am confused about the blender scaling operation. This is the code for scaling: ...
1
vote
0answers
104 views

Converting bones transformation matrix from OpenGL to Blender

So, I'm trying to convert some transformation matrices from OpenGL to Blender but bone poses are wrong. I assume it's transformation matrix, I'm no expert in OpenGl but it's used in this function: <...
0
votes
1answer
84 views

Matrix math to translate, rotate, scale with respect to a pivot point in Object mode

So i need to need to replicate translate, rotate & scale with 3d cursor as pivot point action using Matrix or bmesh in a script. i read Rotate objects around their origin along a global axis (...
4
votes
1answer
202 views

Unrotate a square polygon with Python: all 3 axes

I have a rotated square polygon. And I want to 'unrotate' it so that its normal axes would match world axes. I'm able to unrotate it on the Z axis by using the face normal and rotation difference (I ...
1
vote
0answers
18 views

Bone matrices manipulating problem

So I'm trying to convert additive animations to a weird format that Source engine uses: instead of offsetting the bone relative to its local space, it uses whole armature's origin point for that. All ...
0
votes
2answers
96 views

Easy way to format mathutils.Matrix Vector as tuple (or list) for json?

Hi I am currently making simple pose preset system with json for specific Armatures. It just discribe non driven bone matrix as json (export), then import and apply for pose bones when there is same ...
5
votes
1answer
397 views

Why is this Blender matrix multiplication not distributive?

I was surprised in working on a Blender problem recently to find that matrix multiplication doesn't seem to be distributive: ...
0
votes
1answer
16 views

Matrix not applying to pose bone correctly

I'm attempting to import animations from text files but I can't seem to figure out how to properly import it. If I make a list of positions in a text file like here ...
0
votes
0answers
62 views

Move selected object with transformation matrix

I'm working on a script which exports geometry and structure data (BOM and position) from CATIA V5 into blender. Catia V5 delivers as an absolute position for each part an array with 12 elements. 9 ...
0
votes
1answer
117 views

Access elements of matrix(vectors and Euler angles) in Animation nodes using script node

I would like to know to access individual elements of a matrix or matrices from Matrix/Matrix list input in the script node. Then I can perform some operations(experimentation) on those elements and ...
0
votes
0answers
14 views

How to copy a visual transformation of one bone to another using python?

I have four bones (Bone1, Bone2, Bone3, Bone4). I want to copy the visual transformation of Bone1 to Bone2, and Bone3 to Bone4. I think this can be done using matrix ...
0
votes
0answers
35 views

Setting the points of a nurbs curve to (XYZ) in worldspace [duplicate]

I`m trying to snap the ends of a curve, to two points in space. However, I can't get past the fact that It requires worldspace input of a matrix instead of a vector. I've tried to convert worldspace ...
0
votes
0answers
16 views

Axis flip when using Matrix.to_euler() - how to avoid?

I have a little script that export a camera out of blender and it uses the Matrix.as_euler("ZXY") to extract the rotation values. It all works great as long as it doesn't cross 180 degrees. ...
0
votes
1answer
30 views

Why is the transform gizmo not aligned correctly to my Python created object?

I am having a little confusion here. Some background: the user perspective faces in a direction, I am trying to make a box that faces the user perspective. That I have been able to achieve (pic below) ...
1
vote
2answers
90 views

Bone matrix assignment behaviour change in Blender 2.80

I am trying to port an armature importer add-on from Blender 2.79 to Blender 2.8x. After the bone is being created the bone matrix is set. But the assignment of the bone matrix has a different ...
0
votes
0answers
22 views

Apply matrix correctly to posebone

I am trying to import 3D models and animations from binary files. When importing animation matrices and apply them to posebones.matrix, the animation mesh up when I set parent for each editbone (...
0
votes
1answer
92 views

How to calculate a parent inverse matrix?

Say I want to parent the default Cube to the camera from python without using an operator. First part is easy: ...
0
votes
0answers
44 views

Object Matrix Output, animation nodes problem

I have some problems with my animation nodes, when I node from object instancer to object matrix output, the cube transformed back to the default, it doesn't transform like the cube a make, hope ...
0
votes
0answers
18 views

I need help on matrix not rotating

I'm using an effect like this: https://www.youtube.com/watch?v=0TVGnTiYhwQ However when i try to rotate it and parent it, it doesn't want to keep formation with the plane, i think it's rotating on ...
0
votes
3answers
160 views

Trying to find a way to make a true pixel screen

Using UVs to animate the shapes on the screen would be hard and tedious so i want to use geometry to impact which dots light up the compositor won't really help as it pixelates where the camera is ...
2
votes
0answers
52 views

Order of operations when calculating object transform matrix (matrix_world, viewport channels, OpenGL model matrix)

With its Python API, Blender allows us to directly assign the transforms of objects, using matrix_world attribute. Under the hood Blender renders objects via ...
2
votes
1answer
39 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. ...
0
votes
0answers
29 views

Create object over face aligned-with and nearest to the 3d-cursor

The following-code purpose is to create a cilinder over the 3d-cursor and rotate the cilinder so that is aligned with the nearest face of the selected-object to it. For it to work the active object ...
1
vote
1answer
86 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 ...
1
vote
1answer
59 views

How to get local rotation from Matrix but taking parent transforms into account

beI have this simplified blend file were I need to match the bone 'shoulder' to this other bone called 'shoulder_extra_snap': https://pasteall.org/blend/9f468cbe96f145eb9d77553f3ebf1b89 So, both ...
2
votes
1answer
86 views

Unexpected result setting a shear matrix as transform

I am doing a visualization where I need to transform a sphere with a matrix. Easiest solution would be to just set the matrix as local transform but this gives me unexpected results. I was trying ...
0
votes
0answers
22 views

How to convert pose_bone.matrix and set to pose_bone.local_transform (localtion / rotation / scale)?

My character animation flow needs to be keyframed when the "child of 01" value is 1 and the "child of 02" value is 0, and then curve optimization is performed when the "child of 01" value is 0 and the ...
0
votes
1answer
149 views

Does a child object inherit the matrix from the parent?

When you create a hierarchy with nesting like so: Does Circle inherit the properties from the parent matrix? Or is first the matrix of ...
1
vote
0answers
35 views

Can I get the orientation matrix in real time?

I need to calculate the normal orientation matrix for the tool. There is a way to get a custom orientation matrix ...
1
vote
1answer
117 views

How do I get the normal vector of a selected vertex?(BMESH)

I'm trying to Orient my gizmo according to the normals, but I can't do it exactly. Sometimes perfect, sometimes not. Can you tell me what's wrong? ...
0
votes
0answers
41 views

Python : Negative scale causes global rotation discrepancies

I'm currently working on a system using Blender to export some scenes to a game engine. To do so, I've written a Python script reading the scenes and writing the files as needed. So far I've had no ...
1
vote
1answer
526 views

blender python move faces along normal

Using the GUI you can Set Transform Orientation to Normal select a face in edit mode then hit G button then Z button to move the face in the direction of the normal. I am trying to do this with ...
2
votes
1answer
797 views

Can you work with homogeneous coordinates in the Python API?

If I do this (excuse the transpose, I'm used to looking at matrices the other way round): ...
2
votes
0answers
71 views

mathutils.Matrix, matrix_world: set + get round-trip with ndarray requires transpose?

It seems like the Blender Python API lets you set certain transform attributes, like .matrix_world, using NumPy matrices. However, it seems like there may be some ...
1
vote
1answer
790 views

How to apply all transformations to an object at low level?

I am new to Blender (and to some extent to python). I have pieced together this function that rotates and scales an Object at low level by modifying the matrices: ...
0
votes
1answer
48 views

Custom exporter and problems with matrix and rotation order

I'm trying to write a custom exporter for cameras from/to Blender, but I'm having some problems with rotations and rotation order. In my mind I should be able to extract euler values from the world ...
3
votes
1answer
489 views

Animation Nodes - Blend distribution of objects on a curve into another curve

I've been trying to recreate the effect from the Cinema 4D tutorial below: https://www.youtube.com/watch?v=BPv2HVvQfGo I'm stuck at 9:55 where he uses the inheritance effector to be able to morph ...
0
votes
0answers
124 views

Combined Matrix from LHS to RHS

I am rotating an 3D object around a point that is not the origin. To do this I perform this I create a combined matrix transform by following https://www.euclideanspace.com/maths/geometry/affine/...
0
votes
1answer
384 views

Matrix rotation not changing scale

I'm trying to use Blender to test some matrix transforms but I'm still trying to learn at the same time. The problem is how to use the Python API to apply a rotation matrix, but to start with I have ...
0
votes
1answer
363 views

Extract the rotation (or heading) from local matrix (Blender Python)

If I use physics then the objects rotation not changed but I want to detect the object rotation based an another empty axes (or the world mtrix). I tried extract rotation attribs from local matrix ...
0
votes
0answers
25 views

Creating blender objects with matrix of 3D coordinates?

I have a matrix of 3D coordinates for about 10,000 points. Is there a way to import this matrix into blender in such a way that it creates a simple sphere of the same size at each point in the matrix ...
1
vote
1answer
76 views

BGE Mouse Look Min and Max Bounds Changing?

I have written a script in python that successfully saves and loads the position and rotation of my player cube and camera for use between scene transitions. However, something is going wrong with the ...
1
vote
2answers
731 views

How to get a Center Point from multiple Vertex Locations?

tl;dr: I just want to create some curve guides along those middle points of vertex groups but with a script. I am new to Python in Blender and I can't seem to find how to do this. So far, I managed ...
3
votes
1answer
616 views

Align Object A to Object B to their respective active faces with python

i want to Align two objects depending on their active faces like in this gif below didn't find any answers but only this clue below from this question: Align to face normal vector but it only align ...