Most Popular

1500 questions
16
votes
3 answers

Update viewport while running script

I have a script, which creates multiple objects through a loop. However, the script freezes the viewport until it is done. Instead, I would like every object to be seen in the viewport one by one as it is created. In its simplest terms: import…
dwitvliet
  • 409
  • 1
  • 7
  • 19
16
votes
1 answer

Liquid / glass interface IOR and normals in Cycles

When modelling / rendering a glass with liquid inside (in Cycles), which direction do the normals for the glass only surfaces, shared glass-liquid surfaces, and liquid only surfaces point? I have looked into this myself but seem to get conflicting…
Qutorial
  • 3,312
  • 5
  • 22
  • 34
16
votes
1 answer

Using the Camera Data Node

In the blender manual the options for camera data node are explained like this: View Vector A Camera space vector from the camera to the shading point. View Z Depth How far away each pixel is from the camera View Distance Distance from the camera…
user1853
16
votes
1 answer

How to read vertices of quad faces using Python API?

Preferable in object mode. I have a mesh I know is made of quads only. I want my script to iterate through each quad and do something with the coordinates of each of the four vertices. I have read the API documentation but I don't understand how…
Hatoru Hansou
  • 886
  • 3
  • 13
  • 21
16
votes
1 answer

Why can't I transform faces, edges, or vertices without transforming the whole object?

My problem is that I sometimes lose the ability to independently translate or otherwise transform any parts of a single mesh. If I try, for example, to just translate several faces, edges, or vertices, then the entire mesh will stretch and displace…
Matthew Harrison
  • 185
  • 1
  • 1
  • 7
16
votes
2 answers

How could a single Python script run when Blender is started?

I would like to have a few globally available functions which should not not depend on a .blend file. Is there a place (A setup.py, __init__.py or something like that) where I could put a few lines of code?
stacker
  • 38,549
  • 31
  • 141
  • 243
16
votes
6 answers

How can I better structure my node tree and make it easier for others to understand?

I built a Node with a Geometry Nodes node tree, but now I only see knots instead of nodes, which drives me nuts, and don't know how to make it look great again. As you can see, I have what I think is a beautiful node tree here, which creates a…
quellenform
  • 35,177
  • 10
  • 50
  • 133
16
votes
1 answer

How to handle thousands of lights

I'm trying to create a night-time city in Blender 3.2. For streetlights I've tried two approaches with geometry nodes: Instance lots of balls with an emissive texture. Instance actual point lights. Neither does much in Eevee. Emissive materials…
Daniel Darabos
  • 274
  • 1
  • 8
16
votes
6 answers

How can I create a hexagonal structure with Geometry Nodes?

I am looking for the simplest possible solution to create a hexagonal structure like this with Geometry Nodes: Which solutions are there? Bonus Tasks: Additionally I want the hexagons to have different sizes and be extruded with different…
quellenform
  • 35,177
  • 10
  • 50
  • 133
16
votes
3 answers

How do I add an asset to the User Library from Current File?

I would like to use the asset library, but everything I add to it is only stored on the current file which is of little use. There's no intuitive way to add assets to the main library and apparently there's supposed to be an append option, but I…
TheJeran
  • 2,601
  • 1
  • 8
  • 24
16
votes
1 answer

How can I select hundreds of items in the outliner that have similar names?

I made an asteroid belt from a particle system. Lets say there are 2500 individual asteroids. There are 9 unique models. All the objects are named AsteroidA_LP..., AsteroidB_LP..., etc. all the way to AsteroidI_LP. That makes about 277 asteroids of…
Bryson Jack
  • 3,757
  • 11
  • 38
  • 51
16
votes
1 answer

How to project an image from a Cycle's Sun light

I'm trying to project a caustics texture from a light in Cycles. It works with Point or Spot lights, but I'm trying to emulate the sun projecting caustics underwater, so I need the shadows and light rays to be parallel. Here is an image from the…
Antonio Buch
  • 2,177
  • 14
  • 37
16
votes
2 answers

How to add a group into a node tree with Python

How do I add an already created node group into a node tree? I have found that this works: group = node_tree.nodes.new("ShaderNodeGroup") group.node_tree = other_group.node_tree But it creates a copy of other_group instead of just referencing it.…
BlendingJake
  • 2,557
  • 1
  • 23
  • 38
16
votes
1 answer

What is a shadow ray?

I have read the Blender documentation wikis on both the light path node and on light paths. But neither of them seems to clearly explain what a shadow ray is. For instance, the light paths wiki says: Shadow: the ray is used for (transparent)…
PGmath
  • 25,106
  • 17
  • 103
  • 199
16
votes
2 answers

Add an image to an object

I want to put a 2D image on a 3D object in Blender. How do I do that? I have found the "textures" tab in the "properties" window, but I can't figure out what to do with it. Preferably, I would like to click and drag an image off my desktop right…
Glen Pierce
  • 291
  • 1
  • 3
  • 7