All Questions
23
questions
0
votes
2
answers
51
views
Set Origin to a specific vertex
I need some help with my script. The main task is to move the origin to the position of a certain vertex. In theory this works quite well, but unfortunately the meshes are always moved after i run the ...
0
votes
0
answers
26
views
problem with the origin when exporting the object
I am working with .glb files. Within blender if I change the origin of the object, export it and re-open it in blender everything seems to go as it should and this is retained. However, if I open the ...
0
votes
0
answers
40
views
Keep Operator alive while ending transform?
I'm trying to make a simple blender script that does the following in one click:
enables 'use_transform_data_origin'
enables 'bpy.ops.transform.translate'.
When 'bpy.ops.transform.translate' exited, ...
2
votes
1
answer
165
views
How to loop duplicate one object on top of all selected objects?
How to loop duplicate one object and translate the copy origin on top of the origin of all selected objects (origin position in the belonging objects unchanged) one by one with a python script?
Edit ...
0
votes
0
answers
234
views
Updating an object's location via the python API (3.1+)
I have been playing around with Blender's python API, this is a function I wrote to update an object's location:
...
0
votes
1
answer
47
views
How to set the origin of the object to the center of the face of the bounding box of that object using python API?
I want to know how to set the objects origin such that it is in the middle of on of the faces of the bounding box. The input for which face to use will be taken by the user in the form of +X,+Y,-X,-Z, ...
0
votes
4
answers
501
views
Script: set origin to selected vertex
I'm trying to write a quick script that will work on all selected objects:
Start in object mode
Go into edit mode
Set the 3d cursor location to the selected vertices
Go back to object mode
Set the ...
1
vote
0
answers
66
views
How to set the origin before adding a mesh?
How can I set the origin to the end of a mesh before adding it?
For the moment I'm struggling with the overhead of calculating the center of each object's appropriate axis in order to get it properly ...
4
votes
1
answer
294
views
How can I use origin_set on arbitrary objects instead of the selected ones?
I have this very simple code here:
...
0
votes
0
answers
199
views
Set object origin and transform to face midpoint AND normal via Python
The answer to the above question seems to involve moving the scene cursor to the selected face, performing some matrix magic (math) and at one point using ...
0
votes
2
answers
264
views
How to copy objects and set their origins with Python console?
I am trying to copy Cube and set different random origins to the copies.
I use the following code:
...
2
votes
2
answers
2k
views
How can I move the pivot/gizmo to (0,0,0) in a Python script?
I'm brand new to python, and blender scripting. I'm just trying to make a simple script that will move my current selected object(s) pivot to (0,0,0) in world space -- ie. move it to the origin.
I'm ...
1
vote
1
answer
264
views
How to deselect origin center/ cursor blender with python?
Is there any method to deselect origin center/yellow dot, or make it inactive?
1
vote
0
answers
158
views
Removing connection line between origin of curve and last point of curve
I'm new to Blender 2.8. I want to display a curve based on x, y, z data I got stored in a file. To load the curve I am using the following script, which I found in this forum.
With TS_0084.dat being ...
1
vote
0
answers
33
views
How to change camera origin for rendered image? [closed]
I would like to change the camera origin point from bottom left corner to the upper left corner with Y-axis pointing downwards. Is it possible to do it using python script?