All Questions
36
questions
1
vote
2
answers
56
views
How to parent specific objects to newly created collections?
I used this python code to set the parent (link) the specific objects to newly created collection. The code is working well, but I can see the same objects instance outside(Scene Collection) the newly ...
0
votes
0
answers
12
views
When i set obj parent as bone, it's just jumping away from last position
Before:
After:
Code:
...
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, ...
0
votes
2
answers
40
views
Mirroring/copying relative animations locations?
I want the cube on left to do same animation like the cube on right, but while affecting only the relative location of the left cube.
In my right cube I have "location" animation that moves ...
0
votes
1
answer
24
views
Python: Rotation not applying to child object
I am trying to pose a hand using values read from an XML file. All the joints are parented to the previous joint and finally the fingers to the hand.
Í am using the following code:
...
0
votes
1
answer
62
views
Coding: parenting 1 bone to another bone
I'm trying to make an addon for blender, but I'm having some difficulty with it I'm trying to use a script to select 2 specific bones with a certain name pattern and then parent the first bone to the ...
0
votes
1
answer
95
views
Simple armature creation script results in a crash when attempting to set bone parenting
My full script is more complex than this, but the issue I'm having can be reproduced with these 9 lines of Python code that create an armature with a single bone:
...
0
votes
1
answer
140
views
Change driver target
I have mesh with shapekeys and drivers on said shapekeys which are controlled with armature bones. All shapekeys are set to scripted expression and single prop which is set to said armature.
I'm ...
0
votes
2
answers
180
views
Blender Scripted Expression with distance not working when parented to empty
I am scaling a cube to 1.000 when it is close to a driver (empty placed in the center of the world). The cube has a driver with distance to the empty. See animation below and this works fine.
Issue
...
1
vote
1
answer
632
views
How can I dress up clothing objects with a python script?
As seen in the picture, I have a collection of clothes consisting of different objects. I need to dress these clothing objects on the model. But I have to do this with code because I should be able to ...
0
votes
1
answer
564
views
Bpy check if each object is parented
I am looking for a way via scripting to check if an object is parented. A way to access the list of its direct children would also be helpful. Thank you.
2
votes
1
answer
119
views
How to select a parented hierachy from the 3d viewport using the right click menu?
I know that this can be done in a few other ways too, but I want to know if it can be done from the right-click select menu
As the title suggests, I want to know if there's a shortcut to selecting a ...
0
votes
0
answers
35
views
Programatically unparenting an rigid body doesn't work (with file)
I parented a rigid body to another rigid body. The parent rigid body is keyframed. I want to remove the parent and any lingering keyframing from that parent. Programatically, I tried to remove the ...
0
votes
0
answers
28
views
Recently unparented object doesn't behave independently blender python
I'm trying to simulate stage seperation of a rocket and it requires unparenting the object. It was first parented so it could follow the same route as another stage, but when it was uparented, the ...
1
vote
1
answer
31
views
Parenting results in spontaneoudly moving objects (File included)
I have a rocket with multiple stages. All of these stages are rigid bodies, but they're parented to the topmost stage. They're moving up because I switched the gravity upwards to mimic rocket ...