﻿<?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%3AKazanbas%2FGsoc2009%2F2.5_Python_API_Tutorial</id>
	<title>利用者:Kazanbas/Gsoc2009/2.5 Python API Tutorial - 版の履歴</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%3AKazanbas%2FGsoc2009%2F2.5_Python_API_Tutorial"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kazanbas/Gsoc2009/2.5_Python_API_Tutorial&amp;action=history"/>
	<updated>2026-04-20T19:39:16Z</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:Kazanbas/Gsoc2009/2.5_Python_API_Tutorial&amp;diff=90789&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:Kazanbas/Gsoc2009/2.5_Python_API_Tutorial&amp;diff=90789&amp;oldid=prev"/>
		<updated>2018-06-28T18:43:30Z</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:43時点における版&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:Kazanbas/Gsoc2009/2.5_Python_API_Tutorial&amp;diff=90788&amp;oldid=prev</id>
		<title>wiki&gt;Kazanbas: added a new starter tip</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kazanbas/Gsoc2009/2.5_Python_API_Tutorial&amp;diff=90788&amp;oldid=prev"/>
		<updated>2009-09-29T15:54:22Z</updated>

		<summary type="html">&lt;p&gt;added a new starter tip&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=2.5 Python I/O API Tutorial=&lt;br /&gt;
&lt;br /&gt;
==Starter Tips==&lt;br /&gt;
&lt;br /&gt;
* use outliner -&amp;gt; datablocks to discover API data, properties and functions&lt;br /&gt;
* use source/blender/makesrna/intern/rna_*_api.c code to examine API functions in detail, what parameters they take, what is the return type, and more. For example rna_mesh_api.c&lt;br /&gt;
* read code! There are &amp;quot;live&amp;quot; examples of I/O API usage under release/scripts/io.&lt;br /&gt;
&lt;br /&gt;
==Input==&lt;br /&gt;
&lt;br /&gt;
Create a mesh object:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ob = bpy.data.add_object(&amp;quot;MESH&amp;quot;, &amp;quot;mesh-name-here&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Create a mesh datablock:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bpy.data.add_mesh(&amp;quot;mesh-name-here&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Allocate verts, faces, edges:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
me = ob.data&lt;br /&gt;
me.add_geometry(num_verts, num_edges, num_faces) # any parameter can be 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fill in vertex data:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
me.verts.foreach_set(&amp;quot;co&amp;quot;, coords)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''coords'' must be a &amp;quot;flat&amp;quot; sequence of floats, e.g. if vertices are ((0, 0, 0), (1, 2, 3), ...), then coords should be (0, 0, 0, 1, 2, 3)&lt;br /&gt;
&lt;br /&gt;
unpack_list() from import_obj.py can be used to &amp;quot;flatten&amp;quot; a list of verts.&lt;br /&gt;
&lt;br /&gt;
Fill in face data:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
me.faces.foreach_set(&amp;quot;verts_raw&amp;quot;, indices)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''indices'' is a &amp;quot;flat&amp;quot; list of vertex indices. Again, unpack_face_list() from import_obj.py can be used to &amp;quot;flatten&amp;quot; a list of faces (triangles and quads).&lt;br /&gt;
&lt;br /&gt;
==Output==&lt;/div&gt;</summary>
		<author><name>wiki&gt;Kazanbas</name></author>
		
	</entry>
</feed>