Page MenuHome

Text EditorProject
ActivePublic

Details

Description

This project includes the Text editor built into Blender, and is a sub-project of the Python API module.

Sub-Module Page: T68061
Developers: @Campbell Barton (campbellbarton)

Recent Activity

Sep 17 2020

Campbell Barton (campbellbarton) merged T80611: Text Editor: Missing undo for text operators when in edit mode into T80864: Undo fails with Python text editor operators while in edit-mode.
Sep 17 2020, 2:29 AM · Text Editor
Campbell Barton (campbellbarton) moved T80864: Undo fails with Python text editor operators while in edit-mode from Backlog to Long Term on the Text Editor board.
Sep 17 2020, 2:27 AM · Text Editor
Campbell Barton (campbellbarton) moved T69490: External Text Data Support from Long Term to Papercuts on the Text Editor board.
Sep 17 2020, 2:27 AM · Restricted Project, Text Editor
Campbell Barton (campbellbarton) renamed T80864: Undo fails with Python text editor operators while in edit-mode from Undo with Python text editor operators to Undo fails with Python text editor operators while in edit-mode.
Sep 17 2020, 2:26 AM · Text Editor
Campbell Barton (campbellbarton) changed the subtype of T80864: Undo fails with Python text editor operators while in edit-mode from "Report" to "Design".
Sep 17 2020, 2:26 AM · Text Editor
Campbell Barton (campbellbarton) renamed T80864: Undo fails with Python text editor operators while in edit-mode from Python text editor operators to Undo with Python text editor operators.
Sep 17 2020, 2:25 AM · Text Editor
Campbell Barton (campbellbarton) changed the status of T80864: Undo fails with Python text editor operators while in edit-mode from Needs Triage to Confirmed.
Sep 17 2020, 2:25 AM · Text Editor

Aug 28 2020

Germano Cavalcante (mano-wii) closed T75369: Text Editor: line number color used for text as Resolved.

Resolved by committing rB8f5b9fb51997: Fix for T75369: Text Editor Line Color

Aug 28 2020, 7:53 PM · Restricted Project, User Interface, Text Editor, BF Blender

Aug 24 2020

Dalai Felinto (dfelinto) closed T79853: The Video Editing (Text Font Is not Working) as Invalid.

For help using Blender, please try one of the community websites: https://www.blender.org/community/

Aug 24 2020, 4:31 PM · Text Editor, BF Blender

Aug 21 2020

Peter Fog (tintwotin) added a comment to T79853: The Video Editing (Text Font Is not Working) .

A Video Sequencer tag is missing.

Aug 21 2020, 7:21 AM · Text Editor, BF Blender

Aug 19 2020

Germano Cavalcante (mano-wii) changed the status of T79853: The Video Editing (Text Font Is not Working) from Needs Triage to Needs Information from User.

I can't reproduce the problem.
GIF:

Aug 19 2020, 5:43 PM · Text Editor, BF Blender

Aug 17 2020

Collin Chan (CollinChan918) added a project to T79853: The Video Editing (Text Font Is not Working) : Text Editor.
Aug 17 2020, 5:50 PM · Text Editor, BF Blender

Aug 14 2020

Bastien Montagne (mont29) removed a project from T68068: Text editor undo system, undo step limiting behavior: Datablocks and Libraries.
Aug 14 2020, 11:48 AM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender

Aug 4 2020

Master James (MasterJames) changed the status of T79461: Python Scripting ~ GUI: missing "Run in Console" menu item from Invalid to Resolved.
Aug 4 2020, 12:20 PM · Text Editor, BF Blender
Master James (MasterJames) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

Oh good eye Mate! I was wondering what the thing was causing that. I guess I was quick to Blame others. The VSCode debugging is useful, thanks for that fix again too.

Aug 4 2020, 12:19 PM · Text Editor, BF Blender

Aug 3 2020

Robert Guetzkow (rjg) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

@Master James (MasterJames) I see what the issue is. When you're indenting a block on the console and thus defining a scope, the end of this indented block is confirmed by pressing enter on an empty line. This is the case when you're copy and pasting the above code after e.g. msColl = cols.new( collNam ).

Aug 3 2020, 1:19 PM · Text Editor, BF Blender
Master James (MasterJames) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

This should crash it, if you paste this from the Text Editor into a Console. I get this error.

Aug 3 2020, 12:52 PM · Text Editor, BF Blender
Robert Guetzkow (rjg) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

@Master James (MasterJames) If you're having the same error as ticket 70, then this is a permission error. Administrator privileges are needed to install the required dependencies in C:\Program Files\Blender Foundation\Blender. The add-on should work fine in Blender 2.8x and later.

Aug 3 2020, 10:34 AM · Text Editor, BF Blender
Master James (MasterJames) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

It seems I already had Jacques tool installed, and it is incompatible and does not run in 2.83.3 so not a good solution. [could not install ptvsd etc.]
We are just talking about running the script in the console (not addons) ?!
Anyway I would paste the file contents as that works in every python shell I've ever used but in Blenders GUI Console it complains about indents on anything encapsulated etc. maybe we can call that the bug?
Then you could copy and paste the script contents from the Editor to the Console but again not possible due to another failure to understand common sense in python shells.
I'll stick with ...

exec(open('my_script.py').read())

for now, but it's a big deterrent for anyone getting started with Blender and or scripting in it, so worthy of rethinking your wisdom for that reason too.

Aug 3 2020, 3:21 AM · Text Editor, BF Blender

Aug 2 2020

Robert Guetzkow (rjg) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

@Master James (MasterJames) I understand your expectation and in some cases this would indeed be useful. However, that is not how it's usually done in the case of Python. The console and general script execution are two different approaches, which is also the case outside of Blender.

Aug 2 2020, 6:09 PM · Text Editor, BF Blender
Master James (MasterJames) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

Okay thanks Robert. It seems almost axiomatic (meaning 'a givin') for development debugging purposes you need to be able to inspect and access the script you're editing from the console. Anyway I apologies for making various late night edits to my initial posting I am sure that has been effecting comprehension of the ideas, and am glad it appears clearer now.
I would say that's everybody's expected behavior initially.
One would think the script they are editing is within the console they are running. It's the right way around, if you think about it. So I would suggest this is more of a bug or oversight in obvious logic. Again by saying axiomatic i imply anyone does not need properly formulated arguments to support it's obvious truth in basic logic.

Aug 2 2020, 2:06 PM · Text Editor, BF Blender
Master James (MasterJames) updated the task description for T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.
Aug 2 2020, 1:56 PM · Text Editor, BF Blender
Master James (MasterJames) updated the task description for T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.
Aug 2 2020, 1:51 PM · Text Editor, BF Blender
Robert Guetzkow (rjg) closed T79461: Python Scripting ~ GUI: missing "Run in Console" menu item as Invalid.
Aug 2 2020, 12:58 PM · Text Editor, BF Blender
Robert Guetzkow (rjg) added a comment to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.

Thank you for your report. Unfortunately, the bug tracker is not the right place for improvement suggestions. Please post your ideas on one of the places listed on Blender's Wiki, for instance right-click select.

Aug 2 2020, 12:57 PM · Text Editor, BF Blender
Master James (MasterJames) updated the task description for T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.
Aug 2 2020, 12:55 PM · Text Editor, BF Blender
Master James (MasterJames) updated the task description for T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.
Aug 2 2020, 12:54 PM · Text Editor, BF Blender
Master James (MasterJames) updated the task description for T79461: Python Scripting ~ GUI: missing "Run in Console" menu item.
Aug 2 2020, 12:54 PM · Text Editor, BF Blender
Master James (MasterJames) added a project to T79461: Python Scripting ~ GUI: missing "Run in Console" menu item: Text Editor.
Aug 2 2020, 12:51 PM · Text Editor, BF Blender

Jun 26 2020

Julian Eisel (Severin) moved T75369: Text Editor: line number color used for text from Backlog to Bugs on the User Interface board.
Jun 26 2020, 3:02 PM · Restricted Project, User Interface, Text Editor, BF Blender

Jun 24 2020

Dalai Felinto (dfelinto) closed T68061: Text Editor Module as Resolved.
Jun 24 2020, 10:53 AM · Text Editor, BF Blender

Jun 22 2020

Campbell Barton (campbellbarton) closed T78114: Blender Text Editor can't reload external files as Resolved.

Added report about this particular situation rB9215b5d86921: UI: report when reloading unsaved text

Jun 22 2020, 8:05 AM · Text Editor, BF Blender
Fahad Hasan (cgvirus) added a comment to T78114: Blender Text Editor can't reload external files.

Ow! It works after saving. I think there should be a save warning. Or the reload should be grayed out in no save file.

Jun 22 2020, 5:42 AM · Text Editor, BF Blender
Campbell Barton (campbellbarton) changed the status of T78114: Blender Text Editor can't reload external files from Needs Triage to Needs Information from User.

Tested and reloading works here.

Jun 22 2020, 4:26 AM · Text Editor, BF Blender

Jun 21 2020

Fahad Hasan (cgvirus) added a project to T78114: Blender Text Editor can't reload external files: Text Editor.
Jun 21 2020, 10:41 PM · Text Editor, BF Blender

Jun 20 2020

Campbell Barton (campbellbarton) moved T69490: External Text Data Support from Papercuts to Long Term on the Text Editor board.
Jun 20 2020, 4:54 AM · Restricted Project, Text Editor
Campbell Barton (campbellbarton) moved T68068: Text editor undo system, undo step limiting behavior from Papercuts to Long Term on the Text Editor board.
Jun 20 2020, 4:54 AM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender
Campbell Barton (campbellbarton) moved T71735: Text editor undo system, undo step grouping behavior from Papercuts to Long Term on the Text Editor board.
Jun 20 2020, 4:54 AM · Restricted Project, Text Editor
Campbell Barton (campbellbarton) moved T71735: Text editor undo system, undo step grouping behavior from Backlog to Papercuts on the Text Editor board.
Jun 20 2020, 4:46 AM · Restricted Project, Text Editor
Campbell Barton (campbellbarton) moved T75369: Text Editor: line number color used for text from Backlog to Papercuts on the Text Editor board.
Jun 20 2020, 4:45 AM · Restricted Project, User Interface, Text Editor, BF Blender

Jun 18 2020

Campbell Barton (campbellbarton) updated the task description for T55366: Blender development todo list -- Editors.
Jun 18 2020, 3:28 PM · BF Blender, Animation & Rigging, Video Sequencer, User Interface, Documentation
Campbell Barton (campbellbarton) moved T69490: External Text Data Support from Backlog to Papercuts on the Text Editor board.
Jun 18 2020, 3:26 PM · Restricted Project, Text Editor
Campbell Barton (campbellbarton) moved T68068: Text editor undo system, undo step limiting behavior from Long Term to Papercuts on the Text Editor board.
Jun 18 2020, 3:26 PM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender
Campbell Barton (campbellbarton) moved T68068: Text editor undo system, undo step limiting behavior from Papercuts to Long Term on the Text Editor board.
Jun 18 2020, 3:26 PM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender
Campbell Barton (campbellbarton) moved T68068: Text editor undo system, undo step limiting behavior from Long Term to Papercuts on the Text Editor board.
Jun 18 2020, 3:26 PM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender
StrictlyIncreasing (StrictlyIncreasing) added a comment to T68068: Text editor undo system, undo step limiting behavior.

Somewhat unrelated but if you go ahead with this maybe you could also create a local undo stack for the knife tool as well, that only stays in memory for the duration of the operation.

Jun 18 2020, 3:26 AM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender

Jun 11 2020

Bastien Montagne (mont29) moved T68068: Text editor undo system, undo step limiting behavior from Backlog to Long-Term - Official on the Data, Assets & I/O board.
Jun 11 2020, 6:04 PM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender
Bastien Montagne (mont29) added a project to T68068: Text editor undo system, undo step limiting behavior: Data, Assets & I/O.
Jun 11 2020, 5:24 PM · Restricted Project, Data, Assets & I/O, Text Editor, BF Blender

Jun 9 2020

Peter Fog (tintwotin) closed T68656: Info Editor's Replay fails (needs [modal?] ability to select area/region to execute in) as Invalid.
Jun 9 2020, 8:34 AM · Text Editor, BF Blender

May 7 2020

-- (zgorg) added a comment to D5097: Adding 'Trim Whitespace' and 'Change Case' to Text Editor .
May 7 2020, 11:35 AM · BF Blender, Add-ons (BF-Blender), Text Editor