﻿<?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%3AAnsimionescu%2FNotes%2F1</id>
	<title>利用者:Ansimionescu/Notes/1 - 版の履歴</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%3AAnsimionescu%2FNotes%2F1"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Ansimionescu/Notes/1&amp;action=history"/>
	<updated>2026-11-26T22:21:43Z</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:Ansimionescu/Notes/1&amp;diff=137041&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:Ansimionescu/Notes/1&amp;diff=137041&amp;oldid=prev"/>
		<updated>2018-06-28T20:49:42Z</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:49時点における版&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:Ansimionescu/Notes/1&amp;diff=137040&amp;oldid=prev</id>
		<title>wiki&gt;Ansimionescu: /* Members */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Ansimionescu/Notes/1&amp;diff=137040&amp;oldid=prev"/>
		<updated>2012-06-14T13:27:16Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Members&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Architecture: operators==&lt;br /&gt;
Operators (wmOperatorType*) manage tools, so by defining a new wmOperatorType you create a new tool. Check out [1] for more info (and conventions) and [2] for a tutorial/more details.&lt;br /&gt;
* Example 1: http://pastebin.com/uMfBNvZj&lt;br /&gt;
* Example 2: http://pastebin.com/XUutURAc&lt;br /&gt;
&lt;br /&gt;
==Members==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;ot-&amp;gt;name = &amp;quot;(De)select All&amp;quot; &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;name&amp;#039;&amp;#039;: Human readable name for the UI. Capitalized.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;ot-&amp;gt;idname = &amp;quot;MESH_OT_select_all&amp;quot;&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;idname&amp;#039;&amp;#039;: unique identifier.&lt;br /&gt;
&lt;br /&gt;
Set it identical to the method name&lt;br /&gt;
&lt;br /&gt;
Format: &amp;lt;PREFIX&amp;gt;_OT_&amp;lt;action&amp;gt;_&amp;lt;details&amp;gt; (e.g. MESH_OT_select_all)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;ot-&amp;gt;description = &amp;quot;(De)select all vertices, edges or faces&amp;quot;;&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;description&amp;#039;&amp;#039;: Tooltip?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;PropertyRNA *prop = RNA_def_int(ot-&amp;gt;srna, ...)&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;srna&amp;#039;&amp;#039;: RNA propery defining the way the operator behaves&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;ot-&amp;gt;exec = edbm_select_all_exec&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;exec&amp;#039;&amp;#039;, &amp;#039;&amp;#039;invoke&amp;#039;&amp;#039;, &amp;#039;&amp;#039;modal&amp;#039;&amp;#039;, &amp;#039;&amp;#039;cancel&amp;#039;&amp;#039;: callbacks&lt;br /&gt;
&lt;br /&gt;
Every operator must define either &amp;#039;&amp;#039;exec&amp;#039;&amp;#039; or &amp;#039;&amp;#039;invoke&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;exec&amp;#039;&amp;#039;&lt;br /&gt;
** Provided to run the operator without user interaction.&lt;br /&gt;
** Only if this is provided can the ot be recorded for a macro.&lt;br /&gt;
* &amp;#039;&amp;#039;invoke&amp;#039;&amp;#039;&lt;br /&gt;
** Will execute after an event (e.g. getting mouse coordinates).&lt;br /&gt;
* &amp;#039;&amp;#039;modal&amp;#039;&amp;#039;&lt;br /&gt;
** From the invoke callback, the ot can add itself as a handler, and receive further events in the modal callback.&lt;br /&gt;
* &amp;#039;&amp;#039;cancel&amp;#039;&amp;#039;&lt;br /&gt;
** If the operator is cancelled (e.g. program quitting), this callback is called.&lt;br /&gt;
Return for &amp;#039;&amp;#039;exec&amp;#039;&amp;#039;, &amp;#039;&amp;#039;invoke&amp;#039;&amp;#039; and &amp;#039;&amp;#039;cancel&amp;#039;&amp;#039;:&lt;br /&gt;
* &amp;#039;&amp;#039;pass through&amp;#039;&amp;#039;: Means the operator passes on the event to other operators, as if the callback did not run.&lt;br /&gt;
* &amp;#039;&amp;#039;running modal&amp;#039;&amp;#039;: Indicates that the ot is still running and has registered itself to receive modal callbacks.&lt;br /&gt;
* &amp;#039;&amp;#039;cancelled&amp;#039;&amp;#039;, &amp;#039;&amp;#039;finished&amp;#039;&amp;#039;: Mean the execution of the ot has ended, successfully or not. The operator will be registered only for &amp;#039;finished&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;ot-&amp;gt;poll= ED_operator_editmesh&lt;br /&gt;
[...]&lt;br /&gt;
int ED_operator_editmesh(bContext *C)&lt;br /&gt;
{&lt;br /&gt;
    Object *obedit= CTX_data_edit_object(C);&lt;br /&gt;
    if(obedit &amp;amp;&amp;amp; obedit-&amp;gt;type==OB_MESH)&lt;br /&gt;
        return NULL != ((Mesh *)obedit-&amp;gt;data)-&amp;gt;edit_mesh;&lt;br /&gt;
    return 0;&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;poll&amp;#039;&amp;#039;: Used to verify the ot can be executed in the current context. It&amp;#039;s often shared for multiple operators. It&amp;#039;s always called before executing the operator, so it may be used to gray out or hide UI elements that use this ot automatically.&lt;br /&gt;
&lt;br /&gt;
==Caveats==&lt;br /&gt;
* Note the distinction between RNA properties and customdata. The properties should only store public parameters as seen by the user, these are saved as part of macro&amp;#039;s and written to file. The customdata is an arbitrary pointer, typically to a C struct, that should only exist while the operator is running, an so it is not written to file.&lt;br /&gt;
* The invoke callback also takes properties as inputs and should take those into account. For example a transform operator might have a mode=rotate input, and should then start in rotation mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Home:&lt;br /&gt;
&lt;br /&gt;
[0] http://wiki.blender.org/index.php/User:Ansimionescu&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;br /&gt;
[1] http://wiki.blender.org/index.php/Dev:2.5/Source/Architecture/Operators&lt;br /&gt;
&lt;br /&gt;
[2] http://wiki.blender.org/index.php/Dev:2.5/Source/Architecture/Operators/Tutorial&lt;/div&gt;</summary>
		<author><name>wiki&gt;Ansimionescu</name></author>
		
	</entry>
</feed>