﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Doc%3A2.6%2FManual%2FExtensions%2FPython%2FText_editor</id>
	<title>Doc:2.6/Manual/Extensions/Python/Text editor - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Doc%3A2.6%2FManual%2FExtensions%2FPython%2FText_editor"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Text_editor&amp;action=history"/>
	<updated>2026-08-12T13:59:16Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Text_editor&amp;diff=94175&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Text_editor&amp;diff=94175&amp;oldid=prev"/>
		<updated>2018-06-28T18:45:54Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 18:45時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Text_editor&amp;diff=94174&amp;oldid=prev</id>
		<title>2013年7月4日 (木) 08:22にwiki&gt;Ed62による</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Text_editor&amp;diff=94174&amp;oldid=prev"/>
		<updated>2013-07-04T08:22:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Page/Header|2.5|Doc:2.5/Manual/Extensions/Python/Console|Doc:2.5/Manual/Extensions/Python/Example}}&lt;br /&gt;
&lt;br /&gt;
= The Text Editor =&lt;br /&gt;
Blender has a {{Literal|Text Editor}} among its windows types, accessible via the {{Literal|Text Editor}} button ([[File:Manual-Part-XV-textButton.png]]) of the {{Literal|Window type}} menu, or via {{Shortcut|shift|f11}}.&lt;br /&gt;
&lt;br /&gt;
The newly opened Text window is grey and empty, with a very simple toolbar (''Text Toolbar''). &lt;br /&gt;
&lt;br /&gt;
[[File:Manual-Part-XX-Manual-Extensions-Python-Text-editor-Default-Toolbar.jpg|frame|none|Text Toolbar.]]&lt;br /&gt;
&lt;br /&gt;
From left to right there are the standard {{Literal|Window type}} selection button and the window menus. Then there is the Text ID Block browse button followed by the New button for creating new Text files. Once you click it, you will find that the Toolbar has changed.. for good!&lt;br /&gt;
&lt;br /&gt;
[[File:Manual-Part-XX-Manual-Extensions-Python-Text-editor-Toolbar-with-file-open.jpg|600px|frame|none|Text Toolbar with a file open]]&lt;br /&gt;
&lt;br /&gt;
Now you find a textbox to change name of your text file, followed by '''+''' button to create new files. To remove the text block, click the '''X''' button.&lt;br /&gt;
&lt;br /&gt;
The following three buttons toggle display of line numbers, word-wrap text and syntax  highlighting respectively.&lt;br /&gt;
&lt;br /&gt;
Typing on the keyboard produces text in the text buffer. As usual, pressing dragging and releasing {{Shortcut|Lmb}} selects text. &lt;br /&gt;
&lt;br /&gt;
The following keyboard commands apply:&lt;br /&gt;
* {{Shortcut|ctrl|C}} - Copies the marked text into the text clipboard.&lt;br /&gt;
* {{Shortcut|ctrl|X}} - Cuts out the marked text into the text clipboard.&lt;br /&gt;
* {{Shortcut|ctrl|V}} - Pastes the text from the clipboard at the cursor location in the Text window.&lt;br /&gt;
*{{Shortcut|shift|ctrl|alt|S}} - Saves unsaved text as a text file, a {{Literal|File Browser}} window appears.&lt;br /&gt;
*{{Shortcut|alt|S}} - Saves an already open file.&lt;br /&gt;
*{{Shortcut|alt|O}} - Loads a text, a {{Literal|File Browser}} window appears.&lt;br /&gt;
*{{Shortcut|alt|P}} - Executes the text as a Python script.&lt;br /&gt;
*{{Shortcut|ctrl|Z}} - Undo.&lt;br /&gt;
*{{Shortcut|ctrl|shift|Z}} - Redo.&lt;br /&gt;
*{{Shortcut|alt|R}} - Reopen (reloads) the current buffer (all non-saved modifications are lost).&lt;br /&gt;
*{{Shortcut|alt|M}} - Converts the content of the text window into 3D text (max 100 chars).&lt;br /&gt;
&lt;br /&gt;
To delete a text buffer just press the {{Literal|X}} button next to the buffer’s name, just as you do for materials, etc. &lt;br /&gt;
&lt;br /&gt;
The most notable keystroke is {{Shortcut|alt|P}} which makes the content of the buffer being parsed by the internal Python interpreter built into Blender. The next page will present an example of Python scripting. Before going on it is worth noticing that Blender comes with a fully functional Python interpreter built in, and with a lots of Blender-specific modules, as described in the [[Doc:2.6/Manual/Extensions/Python/References|API references]].&lt;br /&gt;
&lt;br /&gt;
The {{Literal|Text Editor}} has now also some dedicated Python scripts, which add some useful writing tools, like a class/function/variable browser, completion… You can access them through the {{Literal|Text}}&amp;amp;nbsp;→ {{Literal|Text Plugins}} menu entry.&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
== Other usages for the Text window ==&lt;br /&gt;
The text window is handy also when you want to share your .blend files with the community or with your friends. A Text window can be used to write in a README text explaining the contents of your blender file. Much more handy than having it on a separate application. Be sure to keep it visible when saving! If you are sharing the file with the community and you want to share it under some license you can write the license in a text window.&lt;br /&gt;
{{clr}}&lt;br /&gt;
&lt;br /&gt;
= Demonstration =&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;youtube&amp;gt;OzGZ_ssrmsQ&amp;lt;/youtube&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Exercise =&lt;br /&gt;
&lt;br /&gt;
Copy the text below in the Text Editor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import bpy &lt;br /&gt;
from math import radians, cos, sin&lt;br /&gt;
 &lt;br /&gt;
# An object can exist in 20 layers, &lt;br /&gt;
# so the following code determines on which layers you want it to be&lt;br /&gt;
&lt;br /&gt;
# Get the cursor's location&lt;br /&gt;
cursor = bpy.context.scene.cursor_location&lt;br /&gt;
 &lt;br /&gt;
# Radius of the circle&lt;br /&gt;
radius = 5&lt;br /&gt;
 &lt;br /&gt;
# Space the cubes around the circle. Default is 36 degrees apart&lt;br /&gt;
# Get a list of angles converted to radians&lt;br /&gt;
 &lt;br /&gt;
anglesInRadians = [radians(degree) for degree in range(0, 360, 36)]&lt;br /&gt;
 &lt;br /&gt;
# Loop through the angles, determine x,y using polar coordinates &lt;br /&gt;
# and create object&lt;br /&gt;
for theta in anglesInRadians:&lt;br /&gt;
    x = cursor.x + radius * cos(theta)&lt;br /&gt;
    y = cursor.y + radius * sin(theta)&lt;br /&gt;
    z = cursor.z&lt;br /&gt;
    bpy.ops.mesh.primitive_cube_add(location=(x, y, z))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Execute the script with {{Shortcut|ALT|P}}.&lt;br /&gt;
&lt;br /&gt;
You can see the result of running the above script in this video.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;youtube&amp;gt;pPR9Eog0S3E&amp;lt;/youtube&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Page/Footer|Doc:2.5/Manual/Extensions/Python/Console|Doc:2.5/Manual/Extensions/Python/Example}}&lt;/div&gt;</summary>
		<author><name>wiki&gt;Ed62</name></author>
		
	</entry>
</feed>