﻿<?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=%E5%88%A9%E7%94%A8%E8%80%85%3AKesten%2FProjects%2FTextBlockBugs</id>
	<title>利用者:Kesten/Projects/TextBlockBugs - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AKesten%2FProjects%2FTextBlockBugs"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kesten/Projects/TextBlockBugs&amp;action=history"/>
	<updated>2026-07-29T09:02:06Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kesten/Projects/TextBlockBugs&amp;diff=133199&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kesten/Projects/TextBlockBugs&amp;diff=133199&amp;oldid=prev"/>
		<updated>2018-06-28T20:44:53Z</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日 (木) 20:44時点における版&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=%E5%88%A9%E7%94%A8%E8%80%85:Kesten/Projects/TextBlockBugs&amp;diff=133198&amp;oldid=prev</id>
		<title>2012年1月2日 (月) 14:42にwiki&gt;Kestenによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kesten/Projects/TextBlockBugs&amp;diff=133198&amp;oldid=prev"/>
		<updated>2012-01-02T14:42:08Z</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;==TextSaveBug==&lt;br /&gt;
&lt;br /&gt;
[http://wiki.blender.org/index.php/Doc:2.6/Manual/Extensions/Python/Text_editor#Exercise Doc:2.6 Wiki for Text Editor] doesn't mention &amp;quot;make internal&amp;quot; or &amp;quot;Register&amp;quot;, but this is where we should put results after bugs are fixed and we have figured it all out.  I'd like to know what the &amp;quot;make internal&amp;quot; button does. My hope is that it bundles the python script with the .blend file. That would be sensible. &lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
#  filename field does not always reflect active file or file in text window&lt;br /&gt;
# &amp;quot;Run Script&amp;quot; executes unsaved modifications to file, but doesn't autosave the changes&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Results from figuring &amp;quot;make internal&amp;quot; out are in [[User:Kesten/Projects/TextEditorWiki_Proposal]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Users-BlenderFileMenu_TextWindow.png | center | 440p]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
===Discussion:===&lt;br /&gt;
Suppose that “make internal” creates a chunk in the .blend file.&lt;br /&gt;
If i give the .blend file to a friend, they should have the .py script avialable in the text-block drop-up menu.  If they “save” or  “save as”, without making changes, it should save to their disk.&lt;br /&gt;
&lt;br /&gt;
Now, if they make changes to the text-block, what should the behavior be?&lt;br /&gt;
&lt;br /&gt;
I think it would be best if save made changes to both the .blend chunk (internal) and the .py file on disk.  Otherwise there will be a version mismatch between internal and disk copies of the script.&lt;br /&gt;
&lt;br /&gt;
Basically “make internal” switches actions to the .blend chunk while “save as” switches editing to the file on disk.  “save” is a shortcut to &amp;quot;save as&amp;quot; for disk files.  To save a file &amp;quot;made internal&amp;quot; you must use the blender main menu File-&amp;gt;Save.  To synch the .blend chunk with the disk file, one would “make internal” and then “save as” or vice versa.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following can be used for debugging and unit testing the Text Editor&lt;br /&gt;
==== Tests ====&lt;br /&gt;
&lt;br /&gt;
1.  Type a few lines in test1.py .  Click “save as” .  File Browser menu opens.  In File Browser type over filename to test2.py . Click save as.  Blender returns to text-block view but the name in filename field is still test1.py .  Restart blender.  test1.py doesn't containt the changes.  test2.py does.&lt;br /&gt;
Expected Result: the filename field should reflect the active file and this should always be the file open in the text window.&lt;br /&gt;
&lt;br /&gt;
2.  Make changes to test2.py internal and test3.py disk files.  Blender File-&amp;gt;Save to textTesting.blend. Restart Blender.  Changes were saved to test2.py  .   The changes to test3.py seem to have been stored in the .blend file, but changes to disk were not made.  A “*” by the filename indicates they are out of synch.&lt;br /&gt;
&lt;br /&gt;
3.  With test3.py open, add a line and rename it test4.py in the filename field.  Click Text-&amp;gt;Save.  test3.py saves the changes.  test4.py is not saved.&lt;br /&gt;
Expect that changing the name in the filename field would change the active file being worked on and create a new file if it doesn't exist (at least when Text-&amp;gt;save is clicked).  If this is not the behavior then the filename field should be read-only.&lt;br /&gt;
&lt;br /&gt;
4.  Make file test13.py internal, then click the “x” button to unlink the file.  It is removed from the drop-up text-buffers menu.  &lt;br /&gt;
&lt;br /&gt;
5.  Make some changes to a file, then Run Script.  The changes are run in the script, but if you quit without saving, those changes were not autosaved.  I believe most applications would either autosave upon running, or execute the un-saved text buffer.&lt;br /&gt;
&lt;br /&gt;
===Documentation I could find===&lt;br /&gt;
&lt;br /&gt;
[http://www.blender.org/documentation/blender_python_api_2_57_release/bpy.ops.text.html bpy.ops.text.make_internal() ] Make active text file internal&lt;br /&gt;
&lt;br /&gt;
[http://web.archiveorange.com/archive/v/O70RSesXAndbPRue0HOq make internal patch]&lt;br /&gt;
&lt;br /&gt;
[http://projects.blender.org/scm/viewvc.php/trunk/blender/source/blender/editors/datafiles/bmonofont.ttf.c?logsort=cvs&amp;amp;view=log&amp;amp;root=bf-blender&amp;amp;pathrev=35242 2.5 text editor patch]&lt;br /&gt;
&lt;br /&gt;
[http://www.blender.org/forum/viewtopic.php?p=81234&amp;amp;sid=5ea98523613b0ab1887c03576c8a3bda Unanswered blender forum question about “make internal”]&lt;br /&gt;
&lt;br /&gt;
[http://wiki.blender.org/index.php/User:Quorn/SummerOfCode2008/UserManual GoogleSummerOfCode2008 text work by Qorn]&amp;lt;br&amp;gt;&lt;br /&gt;
Text: Internal indicates the text is not associated with any file on disk&amp;lt;br&amp;gt; &lt;br /&gt;
Text: External indicates the text has been linked from a library .blend file&amp;lt;br&amp;gt; &lt;br /&gt;
File: &amp;lt;filename&amp;gt; indicates the text has been saved to/loaded from &amp;lt;filename&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
File: * &amp;lt;filename&amp;gt; (unsaved) indicates changes in the text have not yet been saved &amp;lt;br&amp;gt;&lt;br /&gt;
This page has been accessed 4,619 times.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://wiki.blender.org/index.php/User:Quorn/SummerOfCode2008&lt;br /&gt;
&lt;br /&gt;
http://wiki.blender.org/index.php/Doc:2.4/Manual/Extensions/Python#The_Text_Editor&lt;br /&gt;
&lt;br /&gt;
http://wiki.blender.org/index.php/Doc:2.4/Manual/Extensions/Python/Text_editor&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/Doc?id=d5scbjf_12ffjnqqgn Map of Blender files related to text editor]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Many features (like code completion) from the Google Summer of Code 2008 project do not exist in 2.5 or 2.6. Find out what happened to all that code.  Check for text plugins/addons.&lt;br /&gt;
&lt;br /&gt;
===Bug Tracker===&lt;br /&gt;
&lt;br /&gt;
[https://projects.blender.org/tracker/index.php?func=detail&amp;amp;aid=21043&amp;amp;group_id=9&amp;amp;atid=498 Bug related to undo in text-block]&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The following seems to have been fixed at the expense of “make internal” working at all.  This todo should be updated if work was done on it.&lt;br /&gt;
Old todo: text files are default included in .blend files, no support for external text works, nor does it support relative paths [5]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Bug Tracker searches on “text block editor” and “make internal” give no related results.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Kesten</name></author>
		
	</entry>
</feed>