Skip to main content

All Questions

Tagged with
6 votes
2 answers
12k views

How to add modifiers using python script and set parameters?

I've found some code that could add a modifier but none can set parameters like Octree.
Claire's user avatar
  • 95
16 votes
2 answers
16k views

Add modifier to selected and another to active object

I am trying to set up an operator to use the BoolTool after I set a position and modifier on Selected object and a different one on the Active object. I basically need to move the selected object up ...
Craig D Jones's user avatar
2 votes
1 answer
609 views

is there a way to streamline scripting these shaders and modifier keyframes?

Here is a simple demo script for keyframes on shaders and modifiers for multiple objects. In the future there will be much more going on, so I want to know if there is an easier way to do these kinds ...
uhoh's user avatar
  • 2,667
13 votes
3 answers
3k views

2D solidify. Is it possible?

Is there a way to make some "2D solidify" from edges to faces. (It's about creating roads from GIS data). I've tried Skin modifier, converting to curves with depth and back to mesh, but all the ...
Mechanic's user avatar
  • 962
8 votes
1 answer
8k views

Applying modifiers in a script

I've seen a couple of good examples of creating modifiers and applying them to objects, but they don't seem to be working for me. Or at least are only working part way. My function takes a modifier ...
artk2002's user avatar
  • 103
6 votes
1 answer
5k views

Check if active object has a modifier

How can I check if the Active Object has a specific modifier so that when I run my code, it doesn't add the modifier again to the object? It should add the modifier only to the object which does not ...
Akash Hamirwasia's user avatar
0 votes
2 answers
1k views

How to add and use renamed Mirror modifier with Python?

In this code for 2.8, that works, I am creating a mirror modifier assigned to a cube. ...
Fox's user avatar
  • 1,942
10 votes
1 answer
4k views

How to create a mesh from metaballs which will always work with a Boolean modifier?

My goal is to simulate a particle system in an animation, convert the particles to a mesh, then apply Boolean modifiers to the result mesh. This usually works. However, the mesh generation ...
Ed Tate's user avatar
  • 5,196
3 votes
1 answer
6k views

How to apply a specific modifier on selected objects?

I'm trying to achieve this: I select all objects with the same type of modifier (Armature) and want to "click" Apply on all of them. I searched different scripts on here and badly put together this ...
Oblender's user avatar
2 votes
1 answer
2k views

How to set edge bevel weights from a python script

I need to set weights for some edges from a python script. I have tried looping through object.data.edges and setting bevel_weight values but I can't get it right. It only works if I have first edited ...
Henri's user avatar
  • 45
16 votes
1 answer
3k views

Access skin modifier radius data

With Skin Modifier, we can "weight" a vertex (in Edit Mode) so that the resulting Skin mesh is bigger or smaller - similar to Curve objects which has "Scale Feather" adjustable. Manually, we can hit ...
Jimmy Gunawan's user avatar
9 votes
1 answer
510 views

Is it possible to render modifiers at preview settings?

I have an issue where I am trying to render a very complex scene, and I need to cut on my poly count in order to fit it on my GPU. The simplest way is to change modifiers like Sub-division to a lower ...
J Sargent's user avatar
  • 19.3k
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
5 votes
1 answer
1k views

How to move modifiers of multiple objects up or down?

I would like to move a modifier (which I have already identified) to the bottom of the list of existing modifiers. Unfortunately it does not work and I don't get why...? However, if the object is ...
Noob Cat's user avatar
  • 1,269
4 votes
1 answer
2k views

Create Seamlessly Looping Animated Displacements

How would one create an animated displacement that could loop seamlessly? In other words, the end of the animation needs to be able to loop to the beginning without a noticeable skip or jump. The ...
Linguini's user avatar
  • 927

15 30 50 per page