All Questions
85 questions
1
vote
1
answer
32
views
Selecting vertices with Python only works sometimes
When I use Blender Python to loop through all vertices to select only vertices with a Z coordinate <= 0, the script seems to randomly do one of the following:
Select all vertices
Select the ...
2
votes
1
answer
272
views
KeyError: 'bpy_prop_collection[key]: key "View Layer" not found' when launching blender with external script
When I execute the following code within Blender, it works well regardless of whether it's version 3.x or 4.x. However, if I try to use it by launching Blender with a specific argument to open a ...
0
votes
0
answers
65
views
Similar to "Echo All commands" in Blender?
Is there a way to see which python codes or methods run when I press a hotkey ?
eg I Press "ö" and some action happens. and I don't know what it is.
(also Preferences > KeyMap > Key-...
1
vote
2
answers
138
views
Use 3D view context in python console
Very often I only want to execute a line of code which can only be executed in the 3D view, for example this:
...
0
votes
1
answer
132
views
How to override context area using script when running Blender using Command Line
I use this command for running (open) Blender
blender --factory-startup --python path_to_script script.py
In script.py i tried ...
0
votes
1
answer
38
views
Blender console when clicking on UI elements in python console
I am working on a blender addon. After working with the addon enabled in the blender window. I start seeing the following bug in the console.
...
4
votes
1
answer
214
views
Can Blender addons execute Shell commands on Linux?
I'd make an addon that would use several external command line programs to process output images. Is this possible?
0
votes
1
answer
31
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:
...
1
vote
0
answers
77
views
ID user decrement error raised in the console but has no actual effect on Blender. What's the cause of that?
By displaying the property I am getting this error by editing the property or simple scrolling around in the node editor. So maybe something with the layout or UI?
ERROR (bke.lib_id): C:\Users\...
0
votes
1
answer
129
views
Create bmesh & save into OBJ format without opening blender
I want to create a mesh outside of blender, using bmesh module, and save it into an OBJ or whatever, completely through a python script.
...
1
vote
1
answer
99
views
The results of python scripts and python console are different?
I'm running a script to create a bone and rotate it by setting rotation_euler of the PoseBone. But I got wrong results from the scripts.
My scripts code:
...
0
votes
2
answers
209
views
Restarting Blender with a Script
I am trying to create an operator that restarts Blender. This script has worked for me in the past:
...
2
votes
0
answers
181
views
How can I iterate and print all elements of a Menu (not objects or elements on scene)?
I'm having this little problem that is already costing me more than 24h of research hahaha. I didn't find the answer in any forum and I can't solve it myself in blender.
My question is quite simple.
I ...
2
votes
1
answer
550
views
Where is the output of the text script which is run at the Python console (not run on the text editor)
I have scripts loaded in the text editor. They are made internal, they are registered and saved under scripts/startup/myAddOns. They run OK when I run directly on ...
1
vote
1
answer
379
views
How can I export 2 file formats using command line rendering WITHOUT re-rendering?
When I render via Blender, after rendering it's very easy for me to choose a different format and save it as that. Therefore I can get both Open EXR and PNG.
However, when rendering an animation, say ...