21
votes
Accepted
How to scale a UV Image Texture?
This can be solved by inserting a Mapping node and setting the Scale values as desired.
17
votes
Accepted
How to change color along a curve?
The trick is to enable UV mapping on the curve and then use UV as the input texture coordinate. Then use can use the mapping node to rotate the default UV positioning to get the gradient to run along ...
17
votes
3x4 camera matrix from blender camera
rfabbri's excellent answer works in many cases but not always. Based on his version I created a new one that (at least in my tests) works in all cases, including portrait and landscape pixel aspect ...
11
votes
Accepted
Python: How to identify (by index) the edge closest to a given location?
Following a discussion in comments, there may be a point to consider: what does distance to edge means.
My first though was: the shortest distance to any point along the edge.
But you would prefer the ...
10
votes
Accepted
How do I generate pixel-art friendly UV maps?
Well I cannot promise this is the ideal technique, take it for what it's worth.
Edit: here's a more pixel art like render:
I decided to unwrap the model in the traditional way by marking seams. ...
9
votes
Accepted
How do I set an objects position relative its parent?
You can use Alt+O to setup 0,0,0 coordinates at parent location.
The operator is called Clear Origin, for 2.8+ you can access it from the 3D View header menu under Object > Clear > Origin.
9
votes
Accepted
How can I export or print coordinates of each selected vertex?
Open up a new Text window and copy and past the following.
...
8
votes
How can I "zero" an object's orientation in blender?
You want to apply the rotation. Select your object, then go to Object > Apply > Rotation.
This should do what you want to do
8
votes
Accepted
Why does the y-axis of one of my objects appear to be backwards?
You have a negative scale - see the Scale panel on the right-hand side. Press Ctrl-A and Apply Scale and the transform should behave as you expect. You may also need to Recalculate Normals once you've ...
8
votes
Cycles: Generate 3d coordinates before modifier stack is resolved
It can be done!
Approaching it on a Surface
Before we try to do this with a 3-dimensional texture, let's attempt it in 2-dimensions. This is actually fairly straightforward. We can create a proxy ...
7
votes
Accepted
Generated texture coordinates with shape key
Try using the Object texture coordinate input instead of Generated. Works for me.
7
votes
How to change color along a curve?
Material - plug UV Texture Coordinate socket into Separate XYZ node
and use X socket as Fac input of ColorRamp
Note: Add thickness to a curve (make a tube) you don't need another object for circle ...
7
votes
Accepted
Select everything inside the UV 0-1
Have a look into the python templates that come along with Blender. There is an Operator Mesh UV template you can modify to your needs. Based on that, all you would have to figure out is how to set ...
7
votes
Accepted
How can I "bend" object coordinates?
If you can align the object with the coordinates somehow, and then change it procedurally to the final shape, you can use the Generated coordinate space:
It shouldn't be too hard considering it ...
6
votes
Accepted
How to align vertices 100% accurately?
This is likely because the vertices are not aligned. The transform panel shows the median location of all selected vertices; setting it to 0 will move the whole selection as a unit:
To align the ...
6
votes
Accepted
Align object according to axis
You can use align rotation of the snapping tool. But you have to align an object with straight axes onto your mesh and then rotate it back.
6
votes
Accepted
Point of origin at 0,0,0
You can either move your origin (1),
or move your vertices in edit mode (2).
Solution 01. Move the origin
Set Transform to only affect Origins
Sidebar > Tool > Transform only Origins
Then you can ...
6
votes
Accepted
How to get data and edit it on UV map edges?
Make a "UV" bmesh
Given the mesh object above with UV, make a bmesh from the uv's
loop faces
loop face loops add a vert to new bmesh at uv.x, uv.y, 0
create a ...
6
votes
Select everything inside the UV 0-1
Via Select Box Operator
Example in blender version 2.91,2, after running script, adding Box Select operator with range options (arbitrarily labelled ...
6
votes
Accepted
Get Point Coordinates generated with Geometry Nodes?
This is a workaround and I hope there is (or will eventually be) an easier way to access point cloud data in the API.
In your GN tree add an Instance on Points node, plug in a Mesh Line set to a ...
5
votes
How to align local coordinate with global axis?
Press CtrlA to bring up the Apply object Transformation menu and select Rotation.
From the blender manual:
This will make Blender consider the current rotation to be equivalent to 0 degrees in ...
5
votes
Accepted
Script for getting Camera Look At co-ordinates
If you want the first surface point of where the camera is pointing at, you can use a variation of this script.
It casts a ray from the camera and checks for collision using the ray_cast function of ...
5
votes
Coordinate XYZ limitation of 10,000 - Workaround questions
The limitation is on size of objects, not actual vertex location.
And according to this answer, there's no way around it.
The limit is actually ±10 000, so the maximum size of objects is 20 000 BU.
...
5
votes
Accepted
Which matrix to use to transform children local coordinates to global?
Parent with Identity inverse.
The relationship between the matrices.
Does a child object inherit the matrix from the parent?
and if you have used the parenting operator (yick) how to reset parent ...
5
votes
How to get the coordinates of a sliced volume?
Bisect at waterline.
Making the assumption that the water is an infinite plane, defined by location and normal of a plane object, default aligned such that its local Z axis designates "above ...
5
votes
Accepted
How are tangent and bitangent calculated?
For normal mapping, (tangent, bitangent, normal) is (X, Y, Z).
The tangent and bitangent are computed from a UV map (that's why you need one to get tangents). The idea is they're picked so they point ...
4
votes
Apply Object Texture Coordinates
You can do this by creating a special new material of the texture coordinates and baking it, then using the baked image for the texture coordinates of your split objects. Note thatt this should be ...
4
votes
Accepted
Vertices coords and edges exporting
Each edge contains the vertex index of the two vertices that it connects. Similarly each face contains a list of vertices defining it.
...
4
votes
Accepted
How do I get a better understanding of the coordinate system in blender?
Generated coordinates
Here is a simple base setting, converting the 'generated' output to color.
Generated gives a vector composed of X, Y and Z space coordinates. But these space coordinates are ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
coordinates × 359python × 102
transforms × 43
vertices × 38
scripting × 34
camera × 30
texturing × 29
mesh × 27
uv × 24
animation × 23
modeling × 19
objects × 19
rendering × 15
cycles-render-engine × 14
3d-view × 13
parent × 13
bezier-curves × 12
export × 11
texture-coordinates × 11
materials × 10
import × 9
geometry-nodes × 9
edit-mode × 8
node-editor × 7
armature × 7