Questions tagged [matrix]

The tag has no usage guidance.

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

Get vector location list from matrix list via script node in Animation Nodes

I want to be able to view the coordinates of the locations of the matrices after I have manipulated the matrices with matrix nodes. Would someone be able give me an example script, which I assume ...
0
votes
1answer
35 views

Random step between instances on animation nodes

Can the step distance between instances on animation nodes with a matrix distributed in a spline be random or varied? I just need the distances between the cubes to not be even.
0
votes
0answers
28 views

How to set the parameters to get the same imaging results as Azure Kinect DK?

Through the camera parameters, I can unproject the depth map to get a point cloud. For the obtained point cloud, I can project it to get the depth map, but how to set it in blender, to get the same ...
2
votes
1answer
41 views

Rotate vertices to any arbitrary rotation

I'm trying to rotate a set of vertices (in the example code they form a triangle but will be an arc) to any arbitrary rotation. I start by building a base triangle on the X,Y plane with a Z normal. ...
2
votes
1answer
132 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 ...
3
votes
1answer
62 views

Which matrix to use to transform children local coordinates to global?

Setup I have an object Plane with 6 vertices. To each vertex I assign another object as child. Then I apply two keyframes on location to object Plane: In frame 0 it goes to Z = 5 In frame 81 it goes ...
0
votes
0answers
12 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
35 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
25 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
33 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
30 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
65 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
128 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
153 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
208 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
28 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
156 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
419 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
26 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
113 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
153 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
17 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
64 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
19 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
43 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
119 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
25 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
171 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
60 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
210 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 ...
1
vote
0answers
64 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
48 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
32 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
128 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
65 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
115 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 ...
2
votes
1answer
225 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
43 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 ...
2
votes
1answer
160 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? ...
2
votes
1answer
686 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
1k 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
90 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 ...
2
votes
1answer
1k 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
57 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 ...
4
votes
1answer
606 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
153 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
437 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
457 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 ...