﻿<?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%E3%83%BB%E3%83%88%E3%83%BC%E3%82%AF%3ASobek</id>
	<title>利用者・トーク:Sobek - 版の履歴</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%E3%83%BB%E3%83%88%E3%83%BC%E3%82%AF%3ASobek"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85%E3%83%BB%E3%83%88%E3%83%BC%E3%82%AF:Sobek&amp;action=history"/>
	<updated>2026-10-03T19:39:33Z</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%E3%83%BB%E3%83%88%E3%83%BC%E3%82%AF:Sobek&amp;diff=51540&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%E3%83%BB%E3%83%88%E3%83%BC%E3%82%AF:Sobek&amp;diff=51540&amp;oldid=prev"/>
		<updated>2018-06-28T17:49:46Z</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日 (木) 17: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%E3%83%BB%E3%83%88%E3%83%BC%E3%82%AF:Sobek&amp;diff=51539&amp;oldid=prev</id>
		<title>2007年7月1日 (日) 20:07にwiki&gt;Sobekによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85%E3%83%BB%E3%83%88%E3%83%BC%E3%82%AF:Sobek&amp;diff=51539&amp;oldid=prev"/>
		<updated>2007-07-01T20:07:39Z</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;I am new to wikis and CSS! Keep that in mind, please. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a deep look at the following resources should help me to get into this wiki stuff rather soon&amp;lt;br&amp;gt;&lt;br /&gt;
http://meta.wikimedia.org/wiki/Help:Editing, &amp;lt;br&amp;gt; http://meta.wikimedia.org/wiki/Help:Cascading_style_sheets, and &amp;lt;br&amp;gt; &lt;br /&gt;
http://meta.wikimedia.org/wiki/Help:Contents &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://mediawiki.blender.org/index.php/Meta/customStyles.css and &amp;lt;br&amp;gt;&lt;br /&gt;
http://mediawiki.blender.org/index.php/MediaWiki:Common.css &amp;lt;br&amp;gt;&lt;br /&gt;
are the CSS code pages across the wiki&lt;br /&gt;
&lt;br /&gt;
This column-approach is intended to be a fix for&lt;br /&gt;
http://mediawiki.blender.org/index.php/Manual/Python_Scripting&lt;br /&gt;
because you cannot select the python code without the line numbering! Unfortunalety, http://meta.wikimedia.org/wiki/Help:Table will not work good enough here. Leaving it to you to delete the line numbering.&amp;lt;br&amp;gt;&lt;br /&gt;
With the solution presented here you can copy and paste the python code right away :)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 1em; line-height: 1.1em; border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;width: 5%; float: left; background-color: #f1f1f1; text-align: center; line-height: 1.1em;&amp;quot;&amp;gt; &lt;br /&gt;
001&lt;br /&gt;
002&lt;br /&gt;
003&lt;br /&gt;
004&lt;br /&gt;
005&lt;br /&gt;
006&lt;br /&gt;
007&lt;br /&gt;
008&lt;br /&gt;
009&lt;br /&gt;
010&lt;br /&gt;
011&lt;br /&gt;
012&lt;br /&gt;
013&lt;br /&gt;
014&lt;br /&gt;
015&lt;br /&gt;
016&lt;br /&gt;
017&lt;br /&gt;
018&lt;br /&gt;
019&lt;br /&gt;
020&lt;br /&gt;
021&lt;br /&gt;
022&lt;br /&gt;
023&lt;br /&gt;
024&lt;br /&gt;
025&lt;br /&gt;
026&lt;br /&gt;
027&lt;br /&gt;
028&lt;br /&gt;
029&lt;br /&gt;
030&lt;br /&gt;
031&lt;br /&gt;
032&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;width: 95%; float: left; line-height: 1.1em;&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;nowiki&amp;gt;######################################################&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# Demo Script for Blender 2.3 Guide&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;###################################################S68&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# This script generates polygons. It is quite useless&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# since you can do polygons with ADD-&amp;amp;gt;Mesh-&amp;amp;gt;Circle&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# but it is a nice complete script example, and the&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# polygons are 'filled'&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;######################################################&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;######################################################&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# Importing modules&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;######################################################&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
import Blender&amp;lt;br&amp;gt;&lt;br /&gt;
from Blender import NMesh&amp;lt;br&amp;gt;&lt;br /&gt;
from Blender.BGL import *&amp;lt;br&amp;gt;&lt;br /&gt;
from Blender.Draw import *&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
import math&amp;lt;br&amp;gt;&lt;br /&gt;
from math import *&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# Polygon Parameters&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
T_NumberOfSides = Create(3)&amp;lt;br&amp;gt;&lt;br /&gt;
T_Radius        = Create(1.0)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# Events&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
EVENT_NOEVENT = 1&amp;lt;br&amp;gt;&lt;br /&gt;
EVENT_DRAW    = 2&amp;lt;br&amp;gt;&lt;br /&gt;
EVENT_EXIT    = 3&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;clearBoth&amp;quot;&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
added a colored background for the line numbering. Do you think this is more appealing then a colored background for the python code?&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
problems I have faced so far with =&amp;gt; possible solutions:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;many #'s in one line are converted to numbers&amp;lt;br&amp;gt;&lt;br /&gt;
=&amp;gt;use /nowiki command, this also fixes problem with br command which was the introduction of an empty line at the very beginning of the table&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;should python code be in tables with a dashed border? pre command turns whole commands into text, that equals no more columns&amp;lt;br&amp;gt;&lt;br /&gt;
=&amp;gt; YES it should! See http://mediawiki.blender.org/index.php/Meta/Templates however only one column is intended with this template, so no line numbering!&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;working with existing classes (columnHalf and columnThird) won't work, because this will introduce empty new lines in the python code if the code is long enough&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
So I am calling for:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;introduction of new classes, like &amp;quot;numberColumn&amp;quot; and &amp;quot;scriptColumn&amp;quot; Maybe numberColumn could be like 10 % and script column 90 % of width? on the other hand number column could probably be ok with fixed value if the wiki is changed to be scaleable to screen, latter would be better option (suggested by BeBraw and oxigen)&amp;lt;br&amp;gt;&lt;br /&gt;
=&amp;gt; maybe call them &amp;quot;columnNumber&amp;quot; and &amp;quot;columnScript&amp;quot; to be consistent with other column names. Isn't a percentual width better then a fixed width?!&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Alternative solution by using numbered list offered by wiki ==&lt;br /&gt;
&lt;br /&gt;
Here's another way to do the same thing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 1em; line-height: 1.1em; border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9;&amp;quot;&amp;gt;&lt;br /&gt;
# ######################################################&lt;br /&gt;
# #&lt;br /&gt;
# # Demo Script for Blender 2.3 Guide&lt;br /&gt;
# #&lt;br /&gt;
# ###################################################S68&lt;br /&gt;
# # This script generates polygons. It is quite useless&lt;br /&gt;
# # since you can do polygons with ADD-&amp;amp;gt;Mesh-&amp;amp;gt;Circle&lt;br /&gt;
# # but it is a nice complete script example, and the&lt;br /&gt;
# # polygons are 'filled'&lt;br /&gt;
# ######################################################&lt;br /&gt;
# #&lt;br /&gt;
# ######################################################&lt;br /&gt;
# # Importing modules&lt;br /&gt;
# ######################################################&lt;br /&gt;
# #&lt;br /&gt;
# import Blender&lt;br /&gt;
# from Blender import NMesh&lt;br /&gt;
# from Blender.BGL import *&lt;br /&gt;
# from Blender.Draw import *&lt;br /&gt;
# #&lt;br /&gt;
# import math&lt;br /&gt;
# from math import *&lt;br /&gt;
# #&lt;br /&gt;
# # Polygon Parameters&lt;br /&gt;
# T_NumberOfSides = Create(3)&lt;br /&gt;
# T_Radius        = Create(1.0)&lt;br /&gt;
# #&lt;br /&gt;
# # Events&lt;br /&gt;
# EVENT_NOEVENT = 1&lt;br /&gt;
# EVENT_DRAW    = 2&lt;br /&gt;
# EVENT_EXIT    = 3&lt;br /&gt;
&amp;lt;div class=&amp;quot;clearBoth&amp;quot;&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The problem with this solution is that it does not handle empty lines. Perhaps there's reasonable solution available for that? Also it does not support numbering such as 0001,0002,0003 that might be nice considering layout and readability.&lt;br /&gt;
&lt;br /&gt;
--[[User:BeBraw|BeBraw]] 20:29, 23 August 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CSS code used in blenderpython.org ==&lt;br /&gt;
&lt;br /&gt;
Joe mentioned on the docboard mailinglist:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;quot;Timmeh (tim wakeham) has implemented this in blenderpython.org, you &lt;br /&gt;
could try emailling him about how he did it  :)&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
for instance:&amp;lt;br&amp;gt;&lt;br /&gt;
http://wiki.blenderpython.org/index.php/BPyIntro/Creating_Geometry_with_Blender_Python&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
I have tried to recreate it here, but I failed miserable&lt;br /&gt;
 [[User:Sobek|Sobek]] 13:31, 25 August 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== blenderpython.org Solution ==&lt;br /&gt;
&lt;br /&gt;
I recieved an email regarding the implementation of proper scripting display for python in the blender wiki.  The BPyWiki actually handles this with a custom extension that I wrote specifically for the wiki.&lt;br /&gt;
&lt;br /&gt;
As far as I know there is no way you can do the line numbers automatically for every case using wiki templates and wikiscript.  I have tried using just templates many times and have never quite succeeded, one of the difficulties, as BeBraw described above is the lack of support for new lines, which is not an issue for the pysnippet extension that BPyWiki uses.&lt;br /&gt;
&lt;br /&gt;
I will paste the code for the pysnippet extension below, however, server access is required to install it, as it requires an entry in LocalSettings.php file.&lt;br /&gt;
&lt;br /&gt;
[edit] For some reason this wiki screws up php code big time, so you can see the extension at [edit again] nope don't bother wiki doesn't seem to like php at all, even my extension has a fit over it. Ok try pastebin, http://pastebin.com/778930&lt;br /&gt;
&lt;br /&gt;
The syntax highlight function is not necessary but I posted for completeness.  I haven't completely implemented this feature on the BPyWiki, mostly because my server is currently taking issue to php writing files regardless of permissions.  I'm sure there is a better way around this with pipes and popen functions, but my knowledge of linux is not developed enough to understand how this works.&lt;br /&gt;
&lt;br /&gt;
Once the extension is installed by adding the line -&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
include_once('extensions/pysnippet.php');&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to the LocalSettings.php file, it's a simple matter of using pysnippet tags.  &lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;pysnippet&amp;gt;&lt;br /&gt;
import Blender&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Blender.Redraw()&lt;br /&gt;
&amp;lt;/pysnippet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use the line parameter to start the line numbers at a certain number, as per http://wiki.blenderpython.org/index.php/BPyIntro/Creating_Geometry_with_Blender_Python in the line by line walk-thru of the script.&lt;br /&gt;
&lt;br /&gt;
eg.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;pysnippet line=3 &amp;gt;&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Blender.Redraw()&lt;br /&gt;
&amp;lt;/pysnippet&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The stylesheet is visible at http://wiki.blenderpython.org/index.php/MediaWiki:Bpywiki.css&lt;br /&gt;
&lt;br /&gt;
If you need further assistance with the set up of the extension or further implementation, let me know, I've developed a fair bit of experience modifying wiki to make it work how *I* want.&lt;br /&gt;
&lt;br /&gt;
--[[User:Timmeh|timmeh]] 17:56, 29 August 2006 (CEST)&lt;/div&gt;</summary>
		<author><name>wiki&gt;Sobek</name></author>
		
	</entry>
</feed>