From BlenderWiki
BlenderWikiから

Jump to:
以下のことのためにジャンプする。
navigation
ナビゲーション
,
search
検索
This page documents Blender 2.5 features, if you're looking for Blender 2.4x doc please read Doc:Manual or Doc:Tutorials .
このページはBlender2.5の特徴をドキュメント化したものです。Blender2.4xのドキュメントをお探しならば、Doc:ManualかDoc:Tutorialsを読んでください。


[ edit ] The Text Editor
テキストエディタ

Blender has a Text Editor among its windows types, accessible via the Text Editor button ( イメージ: 手動のパートXV textButton.png
BlenderがText Editorボタンを通してアクセスしやすい、ウィンドウ・タイプにText Editorを持っている、(
) of the Window type menu, or via ?
またはであること)、Windowタイプ・メニューについてを通して、--
Shift F11 .

The newly opened Text window is grey and empty, with a very simple toolbar ( Text Toolbar ).
新たに開かれたTextウィンドウは、非常に簡単なツールバー(テキストToolbar)で灰色であって空である。

Text Toolbar.
テキスト・ツールバー。

From left to right there are the standard Window type selection button and the window menus.
左からちょうどあそこまで、標準のWindowタイプ選択ボタンとウィンドウメニューがある。
Then there is the Text ID Block browse button followed by the New button for creating new Text files.
次に、Text ID Blockブラウズボタンがある、続いて、新しいTextファイルを作成するためのNewボタンがある。
Once you click it, you will find that the Toolbar has changed.. for good!
いったんそれをクリックすると、Toolbarが変化したのがわかる、永遠!

Text Toolbar with a file open
ファイルが開いているテキストToolbar

Now you find a textbox to change name of your text file, followed by + button to create new files.
今、+ ボタンが支えた、新しいファイルを作成したあなたのテキストファイルの名前を変えるためにtextboxを見つける。
To remove the text block, click the X button.
テキストブロックを取り外すために、Xボタンをクリックする。

The following three buttons toggle display of line numbers, word-wrap text and syntax highlighting respectively.
以下の3個のボタンがそれぞれ行番号のディスプレイ、ワードラップ・テキスト、および構文強調表示を切り換える。

Typing on the keyboard produces text in the text buffer.
キーボードにタイプするのはテキスト・バッファのテキストを製作する。
As usual, pressing dragging and releasing LMB ファイルする: テンプレート-LMB.png
通常通りの緊急のドラッギングとリリースLMB
ファイルする: テンプレート-LMB.png selects text.
テキストを選択する。

The following keyboard commands apply:
以下のキーボードのコマンドは適用される:

  • Ctrl C - Copies the marked text into the text clipboard.
    CtrlC--テキスト・クリップボードに著しいテキストをコピーする。
  • Ctrl X - Cuts out the marked text into the text clipboard.
    CtrlX--著しいテキストをテキスト・クリップボードに切り取る。
  • Ctrl V - Pastes the text from the clipboard at the cursor location in the Text window.
    CtrlV--クリップボードからのカーソル位置のTextウィンドウにおけるテキストを貼る。
  • ?
    Shift
    Ctrl Alt S
    - Saves unsaved text as a text file, a File Browser window appears.
    ShiftCtrlAltS--テキストファイル、File Browserウィンドウが現れるように、保存されなかったテキストを保存する。
  • Alt S - Saves an alraedy open file.
    AltS--alraedyがオープン・ファイルであると保存する。
  • Alt O - Loads a text, a File Browser window appears.
    AltO--File Browserが窓を付ける負荷テキスト、aは現れる。
  • Alt P - Executes the text as a Python script.
    AltP--パイソン・スクリプトとしてテキストを作成する。
  • Ctrl Z - Undo.
    CtrlZ--アンドゥ。
  • Ctrl ?
    Shift Z
    - Redo.
    ShiftZ--やり直す。
  • Alt R - Reopen (reloads) the current buffer (all non-saved modifications are lost).
    AltR--現在のバッファ(すべての非保存している変更が無くなっている)を再開させる(再び荷を積む)。
  • Alt M - Converts the content of the text window into 3D text (max 100 chars).
    AltM--3Dテキスト(最大100雑用)にテキスト・ウィンドウの内容を変換する。

To delete a text buffer just press the X button next to the buffer’s name, just as you do for materials, etc.
テキスト・バッファを削除するために、バッファの名前の横でただXボタンを押す、ちょうどあなたが材料などのためにそうするように

The most notable keystroke is Alt P which makes the content of the buffer being parsed by the internal Python interpreter built into Blender.
最も注目に値するキーストロークは、Blenderが組み込まれた内部のパイソン・インタプリタによって分析されるバッファの中身を作るAltPである。
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 API references .
先へ進む前に、Blenderが完全に機能的な内蔵であるパイソン・インタプリタ、および多くのBlender特有のモジュールで来るのに気付くのは価値がある、APIリファレンスで説明されるように。

The 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 Text  → Text Plugins menu entry.
また現在、Text Editorには、クラス/機能/可変なブラウザ、完成のようにいくつかの役に立つ書くことのツールを加えるいくつかのひたむきなパイソン・スクリプトがある… Text→Text Pluginsメニューアイテムでそれらにアクセスできる。

[ edit ] Other usages for the Text window
Textウィンドウに関する他の用法

The text window is handy also when you want to share your .blend files with the community or with your friends.
また、共同体かあなたの友人とあなたの.blendファイルを共有したがっているとき、テキスト・ウィンドウも便利である。
A Text window can be used to write in a README text explaining the contents of your blender file.
あなたのBlenderファイルのコンテンツについて説明するREADMEテキストに書くのにTextウィンドウを使用できる。
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.
共同体とファイルを共有していて、何らかのライセンスの下でそれを共有したいなら、テキスト・ウィンドウにライセンスを書くことができる。

[ edit ] Demonstration
デモンストレーション

[ edit ] Exercise
運動

  1. Type the code below line by line in the Text Editor
    1行ずつ以下のコードをText Editorにタイプする。
  2. Execute the script Alt P
    スクリプトAltPを実行する。
Script to create objects around the 3D cursor location
作成するスクリプトは3Dカーソル位置の周りで反対する。

In case you do not want to type the code in Console,
場合では、Consoleのコードをタイプしたがっていない。

  1. Download the script from here
    ここからスクリプトをダウンロードする。
  2. Save it to your hard drive.
    あなたのハードドライブにそれを保存する。
  3. Open the file in the Blender Text Editor, and execute it by pressing Alt P
    Blender Text Editorのファイルを開く、そして、AltPを押すことによって、それを実行する。

You can see the result of running the above script in this video.
このビデオで上のスクリプトを実行するという結果を見ることができる。



If you have any question about this page topics, please leave a message in the discussion page .
何かこのページ話題に関する質問がありましたら議論ページのメッセージを残す。

Please report any problems editing or creating these pages:
これらのページを編集するか、または作成することにおけるどんな問題も報告する:
Missing images in this page
このページのなくなったイメージ
,
Broken links in this page .
このページのリンク切れ。
Thanks!
ありがとうございます!


Retrieved from " http://wiki.blender.org/index.php/Doc:2.5/Manual/Extensions/Python/Text_editor "
" http://wiki.blender.org/index.php/Doc:2.5/Manual/Extensions/Python/Text_editor "から、検索される。