Linked Questions

12
votes
3answers
4k 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 ...
10
votes
3answers
860 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 ...
8
votes
2answers
2k 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 ...
3
votes
1answer
2k 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 ...
3
votes
1answer
1k 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 ...
2
votes
2answers
576 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). ...
4
votes
1answer
1k 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:...
5
votes
1answer
319 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 ...
3
votes
1answer
533 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, ...
3
votes
1answer
532 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 ...