From BlenderWiki

Jump to: navigation, search

[edit] The TextWindow

Figure

[edit] Text Toolbar

[edit] WindowType

As with every window header, the first button allows you to set the window type.

[edit] Menu

The triangular button expands/collapses menus. Menus provide a self-explanatory way to access all Blender functions which can be performed in the Text Window. They are context sensitive and will change depending on the situation.

[edit] Full Window

Maximise the window, or return to the previous window display size; return to the previous screen setting (CTRL-UPARROW).

[edit] Line Numbers

This button toggles showing of the line numbers on and off.

[edit] Syntax Highlighting

This button toggles syntax highlighting. Colors are set in the theme.

[edit] Text Menu

Choose another Text from the list of available Buffers. The option "Add New" opens a new empty buffer. The option "Open New" turns the Text Window into a File Selection Window and allows you to load a Text Buffer from the disk.

[edit] TX:

Give the current Text buffer a new and unique name. After the new name is entered, it appears in the list, sorted alphabetically.

[edit] Unlink Text

The current Text Buffer is unlinked.

[edit] Font size

Allows you to switch from 12 to 15 point size for text.

[edit] Tab

Sets the number of spaces a tabs is equal too.

[edit] TextWindow

Figure

The TextWindow is a simple but useful Texteditor, fully integrated into Blender. The main purpose of it is to write Python scripts, but it is also very useful for writing comments in the Blendfile or for instructing other users of the purpose of the scene.

[edit] The mouse

[edit] LMB

Sets the cursor position, defines a selection.

[edit] SHIFT-LMB

Adds/remove from selection.

[edit] MMB

Pan / translates window.

[edit] RMB

Opens a menu:

  • New - Creates a new empty buffer.
  • Open - Turns window into a File Selection Window for loading a text buffer from disk.
  • Save - Save text buffer to disk.
  • Save As - Turns window into a File Selection Window for saving the current text buffer to disk.

[edit] The HotKeys

[edit] ALT-C or CTRL-C

Copy the marked text into a temporary buffer.

[edit] SHIFT-ALT-F

Opens the same menu as RMB.

[edit] ALT-J

Asks for a line number and makes the cursor jump to it.

[edit] ALT-M

Converts all the text in the buffer into a 3D text object (Max 1000 chars.).

[edit] ALT-O

Opens a File Selection window.

[edit] ALT-P

Executes the Text as a Python script.

[edit] ALT-R

Reopens the current text file.

[edit] ALT-S

Saves the Text buffer.

[edit] ALT-U or CTRL-Z

Undo.

[edit] CTRL-SHIFT-Z

Redo.

[edit] ALT-V or CTRL-V

Pastes the marked text from the temporary buffer.

[edit] ALT-X or CTRL-X

Cuts the marked text into a temporary buffer.

[edit] TAB

Indents the selected block of code.

[edit] SHIFT-TAB

Unindents the selected block of code.

[edit] Windows

Blender's temporary buffer is separate from Window's clipboard. To access Window's clipboard use SHIFT-CTRL-C, SHIFT-CTRL-V and SHIFT-CTRL-X.