﻿<?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%3ATheeth%2FAPI_Design</id>
	<title>利用者:Theeth/API Design - 版の履歴</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%3ATheeth%2FAPI_Design"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Theeth/API_Design&amp;action=history"/>
	<updated>2026-05-14T07:55:57Z</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:Theeth/API_Design&amp;diff=100879&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:Theeth/API_Design&amp;diff=100879&amp;oldid=prev"/>
		<updated>2018-06-28T19:39:47Z</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日 (木) 19:39時点における版&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:Theeth/API_Design&amp;diff=100878&amp;oldid=prev</id>
		<title>wiki&gt;Theeth: /* UI Elements */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Theeth/API_Design&amp;diff=100878&amp;oldid=prev"/>
		<updated>2010-11-21T16:05:46Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;UI Elements&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page will contain informations/opinions on API design, mostly regarding the registration issues.&lt;br /&gt;
&lt;br /&gt;
== Definitions ==&lt;br /&gt;
&lt;br /&gt;
In this text, I will use the following terms:&lt;br /&gt;
&lt;br /&gt;
* '''extension''': python modules/packages that are self sufficient in defining a Blender extension. This can range from a single file to a series of packages. &lt;br /&gt;
* '''Built in RNA types''': all RNA types that are defined before any extension comes into play (including extensions that are enabled by default)&lt;br /&gt;
* '''Well defined''': a class definition that correctly fulfills the contract of its RNA type&lt;br /&gt;
* '''Register''': a class that is registered is recognized as part of the internal RNA system. It is a valid RNA type.&lt;br /&gt;
* '''Unregister''': a class that is unregistered is (no longer) a part of the internal RNA system. It is not a valid RNA type.&lt;br /&gt;
&lt;br /&gt;
== Protagonists ==&lt;br /&gt;
&lt;br /&gt;
Types that need registration:&lt;br /&gt;
&lt;br /&gt;
# Operators&lt;br /&gt;
# Macro Operators&lt;br /&gt;
# ID Property Groups&lt;br /&gt;
# UI Elements (Panel, Menu, Header, Generic UI, ...)&lt;br /&gt;
# Render Engines&lt;br /&gt;
&lt;br /&gt;
In all cases, the classes need to be well defined '''before''' registration.&lt;br /&gt;
&lt;br /&gt;
Things that affect or are affected by registration:&lt;br /&gt;
&lt;br /&gt;
# Defining properties&lt;br /&gt;
## Properties on built in RNA types&lt;br /&gt;
## Properties on RNA types defined in the same extension&lt;br /&gt;
# Loading an extension&lt;br /&gt;
# Unloading an extension&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Operators ===&lt;br /&gt;
&lt;br /&gt;
Only '''after''' registration:&lt;br /&gt;
* Adding operator to a macro&lt;br /&gt;
&lt;br /&gt;
:Need to verify if operator properties can be added after registration or only before. --[[User:Theeth|Theeth]] 20:52, 7 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
=== Macro Operators ===&lt;br /&gt;
&lt;br /&gt;
While macros are also valid operators, they work a bit differently, that's why their dependencies are listed separately.&lt;br /&gt;
&lt;br /&gt;
Only '''after''' registration:&lt;br /&gt;
* Adding operators in the macro&lt;br /&gt;
&lt;br /&gt;
=== ID Property Groups ===&lt;br /&gt;
&lt;br /&gt;
Only '''after''' registration:&lt;br /&gt;
* Defining properties as part of the group&lt;br /&gt;
* Defining a property with the group as its type&lt;br /&gt;
** Including using the group as an operator property&lt;br /&gt;
&lt;br /&gt;
Needs to be unregistered after all properties using this type have been removed (including operators)&lt;br /&gt;
&lt;br /&gt;
=== UI Elements ===&lt;br /&gt;
&lt;br /&gt;
No dependency. Can be loaded/unloaded in any order.&lt;br /&gt;
&lt;br /&gt;
Note: Order of registration affects drawing order for panels. This is bad and should be changed internally.&lt;br /&gt;
&lt;br /&gt;
=== Render Engines ===&lt;br /&gt;
&lt;br /&gt;
No dependency. Can be loaded/unloaded in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Registration Order ==&lt;br /&gt;
&lt;br /&gt;
The safest &amp;quot;fixed&amp;quot; way:&lt;br /&gt;
&lt;br /&gt;
# ID Property Groups&lt;br /&gt;
## Register group&lt;br /&gt;
## Define group properties&lt;br /&gt;
## Define properties with group as property type&lt;br /&gt;
# Operators&lt;br /&gt;
## Register operator&lt;br /&gt;
## Define operator properties [might have to be done before, not sure]&lt;br /&gt;
# Macros&lt;br /&gt;
## Register macro&lt;br /&gt;
## Add operators to macro&lt;br /&gt;
# UI Elements&lt;br /&gt;
# Render Engines&lt;br /&gt;
&lt;br /&gt;
== Unregistration Order ==&lt;br /&gt;
&lt;br /&gt;
The safest &amp;quot;fixed&amp;quot; way&lt;br /&gt;
&lt;br /&gt;
# Render Engines&lt;br /&gt;
# UI Elements&lt;br /&gt;
# Macros&lt;br /&gt;
# Operators&lt;br /&gt;
# ID Property Groups&lt;br /&gt;
## Remove properties with group as property type (only for properties added to built in RNA types)&lt;br /&gt;
## Unregister group&lt;br /&gt;
&lt;br /&gt;
== Creating RNA types at runtime ==&lt;/div&gt;</summary>
		<author><name>wiki&gt;Theeth</name></author>
		
	</entry>
</feed>