Linked Questions

17 votes
4 answers
12k views

Can I refer to another object's properties from a Cycles node shader? Drivers? If so, how?

I am trying to develop several shaders that need to take into account the position or orientation of another object in my scene. Seems like a generally useful thing to be able to do. Here's an ...
Chuck's user avatar
  • 1,090
11 votes
4 answers
2k views

A way to get Rate of Change in translation or rotation into a shader node

I am doing a space scene with a space ship, and i'm trying to be physically realistic when it comes to how ships move in space. As such, I only want my thruster effects to fire when the Rate of ...
Shaun Yoder's user avatar
10 votes
2 answers
5k views

How do I get the Color value from an RGB node with Python?

I'm a seasoned programmer, but fairly new to blender and 3D-modeling in general. So to get an understanding of different properties I want to write python scripts to create multiple renderings with ...
UlfR's user avatar
  • 237
6 votes
1 answer
7k views

how to find the data_path for scripted keyframes

I would like to script keyframes for bevel modifier width (and many more later). Here is what I have so far. I've commented out the last line which doesn't work. When I type ...
uhoh's user avatar
  • 2,667
2 votes
2 answers
2k views

Where can I find the code behind the Remesh Blocks modifier?

In this answer by @RayMairlot, I learned how to generate a mesh surface that looks like many small cubes stacked in the shape of a sphere (or other meshes). ...
uhoh's user avatar
  • 2,667
3 votes
1 answer
3k views

Error after script selects object and tries to change to "EDIT" mode

This script builds a 3-digit, 7-segment red LED display and cycles through 0-315 in steps of 45. But it doesn't quite work. When changing the first digit to "EDIT" mode in order to change the ...
uhoh's user avatar
  • 2,667
4 votes
1 answer
2k views

Keyframing emission shader colour/strength using python

I'm trying to animate the colour and strength properties of an emission shader based on external data using script. I add a cube and give it an emission shader. I can alter the strength property using:...
user3556's user avatar
5 votes
1 answer
588 views

Why (actually) does it take me so long to make 1000 cubes?

Creating 1000's of objects is slower than I thought it should be. Based on a suggestion here it could be related to name collision checking so I thought I would look into it. Here is some data, and ...
uhoh's user avatar
  • 2,667
3 votes
1 answer
1k views

Adding random noise to a mesh -- programmatically (bpy.ops.mesh.noise)

Trying to draw a scene by a script that is started by a single click, ran into problem creating bumpy terrain. It is easy to create a slightly bumpy ground using mouse and keyboard -- create plane, ...
user2971878's user avatar
3 votes
1 answer
756 views

Render semi-transparent self-intersecting surface in cycles

I am looking at mesh surfaces that intersect themselves and show both sides (inside/outside). It's easier to put one here than to explain. So far, I can not ...
uhoh's user avatar
  • 2,667
3 votes
1 answer
211 views

What kind of illumination to use to produce these 3D ball-and-stick atomic structure models? (specular reflection but no shadows)

I'd like to render a publication quality image something like the image below. I'll script the whole process so we can build many different structures without having to redraw everything, and probably ...
uhoh's user avatar
  • 2,667
1 vote
1 answer
229 views

How to simulate reflection of people in a 4 meter parabolic mirror to show that they won't appear upside down?

Answers to the Space Exploration SE question Which Apollo “mystery” was said to be finally solved by a better rendering engine? demonstrate that sometimes a correct rendering is the best way to ...
uhoh's user avatar
  • 2,667