All Questions
21
questions
1
vote
1
answer
40
views
Scaling multiple independent meshes in an object from their centers, and, scaling only meshes whose centers are engulfed within specific coordinates
In the MWE (Minimal Working Example) below I created 4 spheres and placed them at 4 different locations along the Y-axis. I would like to scale each sphere as per my wish (lets say 2 in the X,Y,Z).
<...
3
votes
1
answer
567
views
How to calculate bounds of all selected objects BUT follow the Active Object's Rotation at the same time?
[ Working code at the bottom, just paste in Blender's text editor. ]
There are similar Bounding Box questions out there but this is different, please don't close.
I made a script which iterates ...
0
votes
0
answers
48
views
Script measuring bounding box size of selected objects, and copying those values into the objects' viewport colors (XYZ = RGB)?
I'd like to find a simple scripted way how to:
measure the bounding box(es) of a selected object(s)
take the XYZ values, and convert them into 0 to 1 numbers with the correct ratio
Feed these three ...
0
votes
0
answers
85
views
How to use the same function on each object in the collection using script
How to select objects in the "Cube" collection one by one
Deselect the active one, select the next one from the list and perform x10 scaling operations on it. in script
For example
Cube (...
1
vote
1
answer
890
views
How to resize an object proportionally via setting edge length?
I'm trying to scale or resize an object to a specific size by picking an edge from that mesh, and then setting that edge to a new measurement, automatically resizing the whole object proportionally. ...
5
votes
1
answer
1k
views
randomly distribute objects over a plane
I have a number of different objects (e.g. cube, cylinder, monkey, furniture, etc) which I would like to distribute randomly over a plane/surface (the floor in this case) without having any ...
1
vote
0
answers
119
views
Scripting Scaling based on custom properties
I am having an issue, and according to suggestion in my previous question PREVIOUS POST I am writing it as another question.
I have a small project where I have a cylinders with custom properties data ...
1
vote
1
answer
1k
views
Able to change dimensions, but not scale
I am new to scripting in Blender and I have a set of commands that work to create my object when pasted into the command line, but not when run as a script. The first major issue I've run into is that ...
1
vote
2
answers
503
views
Script to scale objects resets scale when scrubbing through frames
I am writing a Python script for Blender 2.8 in which I replace objects in the scene with new objects.
I start by importing the new object as a .FBX and linking the original object data to the new ...
4
votes
1
answer
2k
views
Spiral array but with fibonacci sequence
I am trying to make a sunflower.
The seeds in a flower grow in a spiral.
Whenever I add an array spiral and make it follow the curve, it doesn't seem to look quite right. This is because it doesn't ...
4
votes
1
answer
2k
views
Example of persistent usage of «bpy.msgbus» and how to manage it?
I was searching for a way to get notified when the user of my addon interact with for example a particle setting or texture setting. I found out about bpy.mgsbus ...
0
votes
1
answer
3k
views
Apply transforms to all objects
I'm importing a .obj file(s) from another software that results in changes in scale and location. I don't want to have select all objects individually and apply scale and location changes. I've tried ...
2
votes
2
answers
2k
views
Move/rotate object depending on another object
I have an object Cube with copy transforms constraint targeting another object Empty. The constraint is disabled, so when I ...
0
votes
1
answer
4k
views
Apply Transforms on object copies not working
I have two objects which I want to make copies of them and apply transforms for these copies. I'm using the below script but it doesn't work and I don't know why?
...
3
votes
3
answers
2k
views
How to precisely rotate object to align with 3D cursor via Python script?
I would like to rotate my object, which is a simple rod, so it PRECISELY align with the 3D cursor.
Here are some images showing what I mean:
I wish it to be precise so I asked for the python script, ...