﻿<?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%2FFAQ</id>
	<title>Doc:2.6/Manual/Extensions/Python/FAQ - 版の履歴</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%2FFAQ"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/FAQ&amp;action=history"/>
	<updated>2026-08-01T00:44:52Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/FAQ&amp;diff=94155&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/FAQ&amp;diff=94155&amp;oldid=prev"/>
		<updated>2018-06-28T18:45: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日 (木) 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/FAQ&amp;diff=94154&amp;oldid=prev</id>
		<title>wiki&gt;IvanMMMM: world matrix was multiplied in the wrong order</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/FAQ&amp;diff=94154&amp;oldid=prev"/>
		<updated>2012-11-06T17:08:31Z</updated>

		<summary type="html">&lt;p&gt;world matrix was multiplied in the wrong order&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Page/Header | 2.5 Alpha | Doc:2.5/Manual/Extensions/Python/Text editor | Doc:2.5/Manual/Extensions/Python}}&lt;br /&gt;
&lt;br /&gt;
{{review|partial=X}}&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Since we are working with new and improving Python API, if you have something that needs to be answered, please add it here. We will find answers from dev's if we do not know them and provide an answer here.&lt;br /&gt;
&lt;br /&gt;
= Geometry =&lt;br /&gt;
== How can I generate a mesh object using the API? ==&lt;br /&gt;
&lt;br /&gt;
Download this code example [https://svn.blender.org/svnroot/bf-extensions/contrib/py/api-doc/Script_GeneratePyramidMesh.py Script_GeneratePyramidMesh.py] and run it from the Text Window.&lt;br /&gt;
&lt;br /&gt;
== How do I apply a modifier using the API? ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
 bpy.ops.object.convert(target='MESH', keep_original=False)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the modifiers in the stack will be applied. &lt;br /&gt;
&lt;br /&gt;
In case you just want to apply only the subsurf modifier and leave others alone, and create a new mesh (Old mesh will retain all its modifiers), the&lt;br /&gt;
following code shows one way of doing it.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
 for modifier in bpy.context.object.modifiers:&lt;br /&gt;
     if modifier.type != 'SUBSURF':&lt;br /&gt;
         modifier.show_render=True&lt;br /&gt;
 bpy.ops.object.convert(target='MESH', '''keep_original=True''')&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How do I get the world coordinates of a control vertex of a BezierCurve? ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
wmtx = bpy.context.active_object.matrix_world&lt;br /&gt;
&lt;br /&gt;
localCoord = bpy.context.active_object.data.splines[0].bezier_points[1].co&lt;br /&gt;
&lt;br /&gt;
worldCoord = wmtx * localCoord &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Manual-Part20-scripting-faq-CV-in-world-coords.png|480px]]&lt;br /&gt;
&lt;br /&gt;
[https://sites.google.com/site/satishgoda/blender/blog/blender25xscriptinggettingtheworldcoordinates More info...]&lt;br /&gt;
&lt;br /&gt;
== How do I select/deselect the control points of a Curve ==&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
[[Image:Manual-Part20-scripting-faq-select-curve-control-point-method-1.png|480px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
curve = bpy.context.selected_objects[0]&lt;br /&gt;
&lt;br /&gt;
curve.data.splines[0].bezier_points[0].select_control_point = True&lt;br /&gt;
curve.data.splines[0].bezier_points[2].select_control_point = True&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
[[Image:Manual-Part20-scripting-faq-select-curve-control-point-method-2.png|480px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
bpy.context.active_object.data.splines[0].bezier_points[0].select_control_point = True&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://sites.google.com/site/satishgoda/blender/blog/blender25xScriptingSelectCVusingPython More info...]&lt;br /&gt;
&lt;br /&gt;
= Materials = &lt;br /&gt;
== How to link a mesh/object to a material? ==&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
= Customization =&lt;br /&gt;
== How do I automate custom hotkeys? ==&lt;br /&gt;
&lt;br /&gt;
{{Page/Footer | Doc:2.5/Manual/Extensions/Python/Text editor | Doc:2.5/Manual/Extensions/Python}}&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;IvanMMMM</name></author>
		
	</entry>
</feed>