Linked Questions

11 votes
3 answers

Easy way to run python script in blender python console?

When I press "run script" with a python script in the Text Editor, it runs, but seems to spawn some new invisible python interpreter. I'd like it to run in the Python Console that I already have open. ...
foobarbecue's user avatar
10 votes
4 answers

How can I display what happens in the system console inside blender's console?

I have a button created by my script. I wonder how I can display what the system console displays but inside blender's console. CoDEmanX did this by running a script inside it as shown here, but I ...
Tak's user avatar
  • 6,323
4 votes
4 answers

How to properly paste Python function block into python console?

Hi i have some questions : i want to paste block of function into the python console and got a lot of indentation error. Is this a bug or do i miss something ? i'm using 2.79. I'm new in coding. ...
andio's user avatar
  • 2,428
3 votes
4 answers

How do I send multiple command line commands to the same Blender instance?

im pretty new to blender, and im facing the need to issue python scripts to blender outside of blender via command line. Im using the following from a windows shell: "blender exe" --python "python ...
Juan Cristbal Quesada Jiceq's user avatar
3 votes
2 answers

Is automatic "Reload from disk" confirmation in Text Editor possible?

I use an external editor for my scripting. When I return to Blender I want the script in the text editor to reload my changes. Blender does indeed detect the changes (red button) which is great but it ...
JoelArt's user avatar
  • 185
4 votes
2 answers

Where does my Python output go when I start Blender with a script in Windows?

I'm starting Blender 2.79 with a --python flag to run a python script. On a Mac, print() statements show up in the terminal ...
meetar's user avatar
  • 199
4 votes
1 answer

How to reload all text editor scripts at once

I'm creating some simple scripts to automatize my workflow. Things like: ...
Kabu's user avatar
  • 808
0 votes
1 answer

Open Blender GUI from .py script

Can I open GUI window from bpy module and control scene from script? Example: ...
Maxim Lis's user avatar
0 votes
1 answer

Relative path to script folder using text view

I'm completely new to scripting, just started watching my first tutorial on this matter and the tutor in the video uses the built-in python scripting view, but has to copy and paste lines of code into ...
ivan's user avatar
  • 45
1 vote
1 answer

How to have Blender run my script from the filesystem rather than the script window? [duplicate]

I'm trying to figure out a workflow to allow me to develop addons in Blender that doesn't require me to use the Scripting window. The scripting window is great if your script can be done in a single ...
kitfox's user avatar
  • 1,616
3 votes
1 answer

Text Editor Scripts not available in the Python Console - but are available to scaling drivers

Summary - Background Created a text file in Gedit Opened in Blender Text Editor Selected [x] Register Summary - Issue The scripts are available to my scaling drivers No ...
TaoRich's user avatar
  • 187
0 votes
0 answers

How to execute a python script inside execute(self, context) in operator class?

I have a simple python script import bpy for obj in obj.location.x += 5 I want to execute this script in ...
Derekcbr's user avatar
2 votes
0 answers

Run a python script before console

When I launch blender with -P and --python-console together like this ...
Giang Lê's user avatar
0 votes
1 answer

How to import script from Text editor to Python Console?

Problem description I've got a simple script in Text Editor And want to get the function defined in it be able to execute from Python Console. Old Blender Cookie tutorial says that all I have to do ...
Yuri Titko's user avatar
0 votes
0 answers

Run script through Python without polluting namespace?

How can I use the Python API to run a Python script, exactly as if it were either opened with .use_module=True or run with or ...
Will Chen's user avatar
  • 1,607