﻿<?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_talk%3A2.6%2FManual%2FExtensions%2FPython%2FProperties</id>
	<title>Doc talk:2.6/Manual/Extensions/Python/Properties - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Doc_talk%3A2.6%2FManual%2FExtensions%2FPython%2FProperties"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc_talk:2.6/Manual/Extensions/Python/Properties&amp;action=history"/>
	<updated>2026-12-06T19:07:27Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc_talk:2.6/Manual/Extensions/Python/Properties&amp;diff=98911&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc_talk:2.6/Manual/Extensions/Python/Properties&amp;diff=98911&amp;oldid=prev"/>
		<updated>2018-06-28T19:38:19Z</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:38時点における版&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_talk:2.6/Manual/Extensions/Python/Properties&amp;diff=98910&amp;oldid=prev</id>
		<title>2011年12月15日 (木) 06:40にwiki&gt;PKHGによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc_talk:2.6/Manual/Extensions/Python/Properties&amp;diff=98910&amp;oldid=prev"/>
		<updated>2011-12-15T06:40:12Z</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;== Question about using properties in UI ==&lt;br /&gt;
Although the explanation is very good and clear, I am still missing several details about using properties in the UI.&lt;br /&gt;
&lt;br /&gt;
Some of static properties can be edited in the UI, some not. For example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import bpy&lt;br /&gt;
class VIEW3D_PT_test(bpy.types.Panel):&lt;br /&gt;
    bl_label = &amp;quot;Testing Panel&amp;quot;&lt;br /&gt;
    bl_space_type = &amp;quot;VIEW_3D&amp;quot;&lt;br /&gt;
    bl_region_type = &amp;quot;UI&amp;quot;&lt;br /&gt;
    val_n2=bpy.props.IntProperty(name=&amp;quot;Another non-editable value&amp;quot;)&lt;br /&gt;
    def draw(self, context):&lt;br /&gt;
        layout = self.layout&lt;br /&gt;
        layout.prop(context.scene, &amp;quot;val_e&amp;quot;)&lt;br /&gt;
        layout.prop(context.space_data, &amp;quot;val_n&amp;quot;)&lt;br /&gt;
        layout.prop(context.space_data, &amp;quot;grid_lines&amp;quot;, text=&amp;quot;Another editable value&amp;quot;)&lt;br /&gt;
        layout.prop(self, &amp;quot;val_n2&amp;quot;)&lt;br /&gt;
bpy.types.Scene.IntProperty(attr=&amp;quot;val_e&amp;quot;, name=&amp;quot;Editable value&amp;quot;)&lt;br /&gt;
bpy.types.SpaceView3D.IntProperty(attr=&amp;quot;val_n&amp;quot;, name=&amp;quot;Non-editable value&amp;quot;)&lt;br /&gt;
bpy.types.unregister(VIEW3D_PT_test)&lt;br /&gt;
bpy.types.register(VIEW3D_PT_test)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
EDIT: --~~&lt;br /&gt;
This works in 2.61&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import bpy&lt;br /&gt;
class VIEW3D_PT_test(bpy.types.Panel):&lt;br /&gt;
    bl_label = &amp;quot;Testing Panel&amp;quot;&lt;br /&gt;
    bl_space_type = &amp;quot;VIEW_3D&amp;quot;&lt;br /&gt;
    bl_region_type = &amp;quot;UI&amp;quot;&lt;br /&gt;
    val_n2=bpy.props.IntProperty(name=&amp;quot;Another non-editable value&amp;quot;)&lt;br /&gt;
    def draw(self, context):&lt;br /&gt;
        layout = self.layout&lt;br /&gt;
        layout.prop(context.scene, &amp;quot;val_e&amp;quot;)&lt;br /&gt;
        layout.prop(context.space_data, &amp;quot;val_n&amp;quot;)&lt;br /&gt;
        layout.prop(context.space_data, &amp;quot;grid_lines&amp;quot;, text=&amp;quot;Another editable value&amp;quot;)&lt;br /&gt;
        layout.prop(self, &amp;quot;val_n2&amp;quot;)&lt;br /&gt;
bpy.types.Scene.val_e = bpy.props.IntProperty(attr=&amp;quot;val_e&amp;quot;, name=&amp;quot;Editable value&amp;quot;)&lt;br /&gt;
bpy.types.SpaceView3D.val_n = bpy.props.IntProperty(attr=&amp;quot;val_n&amp;quot;, name=&amp;quot;Non-editable value&amp;quot;)&lt;br /&gt;
#bpy.types.unregister(VIEW3D_PT_test)&lt;br /&gt;
bpy.utils.register_class(VIEW3D_PT_test)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When a property is added to Scene, it can be edited, when added to SpaceView3D, it cannot. What is the logic behind?&lt;br /&gt;
&lt;br /&gt;
And dynamic properties seem to be unaccessible through UI at all. Following code works:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
bpy.types.Scene.invisible=property(lambda self: 10)&lt;br /&gt;
print (bpy.context.scene.invisible)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
But when trying the following:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
        # (...)&lt;br /&gt;
        layout.prop(context.scene, &amp;quot;invisible&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
I get just an error &amp;quot;rna_uiItemR: property not found: invisible&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Could this topic be explained more deeply, please?&lt;br /&gt;
&lt;br /&gt;
--[[User:Addam|emu]] 10:06, 7 August 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Clarify which &amp;quot;Custom Properties&amp;quot; section to look in for ID-Properties ==&lt;br /&gt;
&lt;br /&gt;
Great intro.  I find there are so many different properties in blender it&amp;#039;s hard to keep track. I tried following the code and everything made sense except I didn&amp;#039;t see any of my new properties showing up in the Custom Properties section.  It turns out, that&amp;#039;s because I needed to be in Properties-&amp;gt;Object, whereas I was in Properties-&amp;gt;Materials.  It might be worth mentioning.  Also, pressing &amp;quot;n&amp;quot; to open the 3d-ViewPort properties panel does show the new properties.&lt;br /&gt;
&lt;br /&gt;
[[File:Manual-Part25-WhichCustomPropertiesToFindID-Properties.png |600px]]&lt;br /&gt;
&lt;br /&gt;
Also note that I was adding these properties by scripting them with python.  When I tried to Add Game Property from the logic panel (shown above) it didn&amp;#039;t show up.&lt;br /&gt;
&lt;br /&gt;
--Kesten&lt;/div&gt;</summary>
		<author><name>wiki&gt;PKHG</name></author>
		
	</entry>
</feed>