View & accessibility
Thumbnails
Motion
Bforartists
5.1
Editors

Text Editor

The *Text Editor*is mainly used to write scripts. And so the functionality orients towards this useage. But you can also use it to write any text. To store some notes for the scene for example. See Tip below.

11
 min read
Up to date for 
5.1
draft

Text Editor

The *Text Editor*is mainly used to write scripts. And so the functionality orients towards this useage. But you can also use it to write any text. To store some notes for the scene for example. See Tip below.

When you don't have a file loaded then the header content is rather small.

Text Editor

Once you create a new file, or load a file, you will see the toolbar change, and reveal further functionality.

Text Editor

Some text related functionality can also be found in the tool shelf at the right.

Text Editor

Tip: A Text window can be used to write in a README text explaining the contents of your blend file. Be sure to keep it visible when saving! And be sure to tell the receiver to activate Load UI to display the text file then. Bforartists has Load UI deactivated by default.

Slider snapping

Slider snapping

Snapping also works at sliders. Hover with the mouse over the slider, start to slide, and holding down Ctrl will snap the sliders in incremental steps.

When it's a default value between 0 and 1 then it usually snaps in 0.1 steps. When it's a default value over 1 then it usually snaps in steps of 10.

The increment snapping also works at the frame slider.

Header - File Menu

Header - File Menu
Header - File Menu
Header - File Menu
Header - File Menu

The File menu contains the load and save functionality. But also some Python and OSL templates. And some general debug functionality.

When no text is loaded then the menu is reduced.

EntryWhat it does
New TextCreates a new text file.
Open TextOpen a text file.

Reload

It can happen that you work with an external script editor, like Visual Studio, and change your script there. The reload button reloads the current active text file from hard disk.

Reload

You will get a warning symbol in the header when the script in the text editor doesn't match with the external text anymore.

Edit Externally

Edit Externally

Allows you to edit your file externally with a defined code editor like VS Code.

Note that you need to define the external editor in the preferences first.

EntryWhat it does
SaveSaves the text file. Overwrites the existing version immediately.
Save AsSave as opens a save as file dialog.

Templates

Templates

The Templates category contains some example scripts. There are two kind of templates. Python scripts and Open Shading Language scripts. The name of the files should tell you what the script is good for.

Redraw Timer

Redraw Timer

This is a relict from early Blender days. A debugging timer for the UI where you can test the redraw time of different UI elements.

Debug Menu

Debug Menu
Debug Menu

Another development tool. Set the debug level.

Debug Menu
EntryWhat it does
Reload ScriptsReload Scripts reloads all active python scripts and addons. Including the Bforartists python UI files. This can be useful when you work at the UI or at an add-on. Then you don't have to close and reload Bforartists to see the changes. You can simply reload the scripts and keep Bforartists open.
Clean up Space DataRemove unused settings for invisible editors.

Memory Statistics

Memory Statistics

Print memory statistics to the console. You need to have the console open.

Clean Up Operator Presets

Clean Up Operator Presets
Clean Up Operator Presets

Remove outdated operator properties from presets that may cause problems. This is useful when an operator supports presets to customize settings need to be reset.

Header - View Menu

Header - View Menu
Header - View Menu

The View menu contains some view related functionality.

Opens or closes the sidebar.

Zoom In

Zoom In

Zooms in to adjust the font size to use for displaying the text. The font size can also be adjusted in the sidebar.

EntryWhat it does
Zoom OutZooms out to adjust the font size to use for displaying the text. The font size can also be adjusted in the sidebar.
Top of FileJumps to the top of the text file.
Bottom of FileJumps to the bottom of the text file.

Area submenu

Area submenu

Area is a menu with window related settings.

EntryWhat it does
Horizontal SplitSplits the editor horizontally into two editors.
Vertical SplitSplits the editor vertically into two editors.
Duplicate Area into new WindowCreates a floating window out of the current editor
Toggle Maximize AreaDisplays the editor maximized with menus. To return to split view press hotkey Ctrl Up Arrow, or reuse the menu item in the View menu.
Toggle Fullscreen AreaDisplays the editor maximized without menus. To return from the full screen view press hotkey Alt F10, or use the little button that appears up right when you move the mouse in this corner.
Close AreaCloses the area window.

Header - Edit Menu

Header - Edit Menu
Header - Edit Menu

The Edit menu contains tools to modify the text.

EntryWhat it does
CutCuts the selected text.
CopyCopies the selected text.
PastePastes copied text at Text cursor position.
Duplicate LineDuplicates the line where the Text cursor currently is.
Move Line upMoves the line where the Text cursor is one line up.
Move Line downMoves the line where the Text cursor is one line down.

Select Text submenu

Select Text submenu

Select text is a sub menu that contains selection functionality, starting from the current position of the Text cursor. The buttons should be self explaining. And usually you use the hotkeys for this functionality.

Move Cursor submenu

Move Cursor submenu

This sub menu contains all available methods and its hotkeys to set the mouse cursor in the text.

Delete

Delete

Delete is a sub menu with some special Delete methods, starting from the current position of the Text cursor. And usually you use the hotkeys for this functionality.

EntryWhat it does
Select allSelects all text.
Select LineSelects the word under the mouse cursor.

Word

Word

Selects the line where the Text cursor. currently is

Go to Line

Go to Line

This tool opens a sub menu where you can type in the line number and jump to this line then.

Find

Find

Find opens the Tool Shelf, where you can find a Find & Replace panel. The Find & Replace panel is explained in the tool shelf chapter.

EntryWhat it does
Find & Set SelectionFinds and selects the next text element that matches with the current selection. It's the same functionality than the Find Next button in the Find & Replace panel.
Text Auto CompleteAuto Complete tries to complete your text input.

Text to 3D Object

Text to 3D Object
Text to 3D Object
Text to 3D Object
Text to 3D Object

Text to 3D Object converts the text of the file to an editable 3D object in the 3D Viewport.

EntryWhat it does
One ObjectConverts the whole text into one object.
One Object Per LineConverts every line of the text into a separate object.

Header - Format Menu

Header - Format Menu
Header - Format Menu

The format menu contains some formatting functionality.

EntryWhat it does
IndentIndents the text. Python requires proper indentation.
UnindentUnindents the text.
CommentComments the text out. For Python usually with a # sign.
UncommentUncomments commented text.
Toggle commentsToggles the comments.
Whitespaces to SpacesConverts Whitespaces in the text to Spaces.
Whitespaces to TabsConverts Whitespaces in the text to Tabs.

Header - Tools

Header - Tools

The Header tools provides you with quick access functionality.

Text Prop

Text Prop

List of text files

List of text files
List of text files

This is a list of the images in the scene. This list allows you to switch to other images.

Search form

Search for specific images.

EntryWhat it does
Text Edit BoxRead the name of the currently selected text. And you can rename the textfile here too.
Unlink DatablockThis closes the selected text. Attention, different from the rest of the UI this text really vanishes immediately from the list then.

File selector property

File selector property
File browser
File browser

The list of loaded text files.

EntryWhat it does
Fake UserWit this button you assign a fake user to this selected image. Data, like images, that is not longer linked to anything else gets removed when you save and reload a scene. Bforartists has the concept of fake users to go around this behavior. An image with a fake user is in fact linked to something. And so it is not lost when you save and reload the scene.
New TextCreate a new text file.
Open TextOpen a text file. A file browser will open.
RemoveClose the text. It will be removed from the list.

Run Script

Run Script

This button is for python or OSL scripts. It executes the script.

Register

This checkbox is for Python or OSL Scripts. When checked the classes of the script gets registered in Bforartists.

Info String

Shows infos about the current text file. When it's an internal created file then it displays the String File: Internal. When it's an external loaded file, then the string displays the path to the location of the file.

Show Line Numbers, Wrap and Syntax Highlight

Show Line Numbers, Wrap and Syntax Highlight
Show Line Numbers, Wrap and Syntax Highlight

Show Line numbers displays a row of numbers at the left side of the text file.

Wrap words wraps the text to fit into the current editor size.

Syntax highlighting colors text parts fitting to the language.

Find and Replace

Find and Replace

Calls a find and replace dialog.

Tool Shelf

The Tool Shelf is the place for some options and the text search panel.

Find & Replace Panel

Find & Replace Panel
Find & Replace Panel

In the find panel you will find tools with text search and replace functionality.

EntryWhat it does
Find Edit BoxHere you can type in the string that you want to search.
Find set selectedCopies the currently selected text into the Find edit box, searches for a matching string in the text, and selects this match then.
Find NextSearches for the next matching string in the text.
Replace Edit BoxHere you can type in the string that you want to replace in the text.
Replace set selectedCopies the currently selected text into the Find edit box, searches for a matching string in the text, and replaces this match with the string in the Replace edit box.
ReplaceSearches for the next matching string in the text. And replaces it the string in the Replace edit box.

Replace all

Searches for matching strings in the text. And replaces them all by the string in the Replace edit box.

Note: Replace all

By default when the search does not find a matching string anymore in the text below the current selection, then you will get a warning that the search string is not present in the text file. It will not automatically start the search from the top again. You have to place the text cursor manually at the top of the text.

Or turn on the Wrap checkbox below.

EntryWhat it does
Match caseWhen ticked then the search is Upper case sensitive.
WrapStarts the search from the top of the document when the search has reached the end of the document.
AllSearch in all opened Text files, not just the currently active one.

Properties Panel

Properties Panel
EntryWhat it does
HighlightHighlights the line where the text cursor is.
Live EditUpdates the script while editing.
Font SizeThe font size for the text editor
Tab widthNumber of spaces to display tabs with. Default is four.

Intendation

Intendation

How to deal with intendation. Treating it as tabs or as spaces.

Show Margin

Show Margin

Shows a dotted line at the right. Note that we have currently a theming problem here with the default Bforartists theme. We have white text, means a white dotted line. And we have a white background. This means that the dotted line just shows with other themes where the header text color is black.

Margin Column

Margin Column

This edit box becomes visible when Show Margin is ticked.

Here you can adjust the width from the left at which the dotted margin line should show.

Info String

Info String

This string shows infos about the current text file.

When it's an internal created file then it displays the String File: Internal.

When it's an external loaded file, then the string displays the full path to the location of the file.

Context menu

Context menu

When you right click into the text editor then a popup menu opens up. It is to 100% made of double menu entries.

EntryWhat it does
CutCuts the selected text.
CopyCopies the selected text.
PastePastes copied text at Text cursor. position.
Move Line upMoves the line where the Text cursor. is one line up.
Move Line downMoves the line where the Text cursor. is one line down.
IndentIndents the text. Python requires proper indentation.
UnindentUnindents the text.
Toggle commentsToggles the comments.
Text Auto CompleteAuto Complete tries to complete your text input.