﻿<?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=Extensions%3A2.4%2FPy%2FScripts%2FTemp%2FUVtoTex</id>
	<title>Extensions:2.4/Py/Scripts/Temp/UVtoTex - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Extensions%3A2.4%2FPy%2FScripts%2FTemp%2FUVtoTex"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.4/Py/Scripts/Temp/UVtoTex&amp;action=history"/>
	<updated>2026-10-15T08:51:00Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Extensions:2.4/Py/Scripts/Temp/UVtoTex&amp;diff=54434&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.4/Py/Scripts/Temp/UVtoTex&amp;diff=54434&amp;oldid=prev"/>
		<updated>2018-06-28T17:51:23Z</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:51時点における版&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=Extensions:2.4/Py/Scripts/Temp/UVtoTex&amp;diff=54433&amp;oldid=prev</id>
		<title>wiki&gt;Mindrones: moved Extensions:2.4/Py/Scripts/temp/UVtoTex to Extensions:2.4/Py/Scripts/Temp/UVtoTex</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.4/Py/Scripts/Temp/UVtoTex&amp;diff=54433&amp;oldid=prev"/>
		<updated>2010-10-02T08:57:22Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/Extensions:2.4/Py/Scripts/temp/UVtoTex&quot; class=&quot;mw-redirect&quot; title=&quot;Extensions:2.4/Py/Scripts/temp/UVtoTex&quot;&gt;Extensions:2.4/Py/Scripts/temp/UVtoTex&lt;/a&gt; to &lt;a href=&quot;/Extensions:2.4/Py/Scripts/Temp/UVtoTex&quot; title=&quot;Extensions:2.4/Py/Scripts/Temp/UVtoTex&quot;&gt;Extensions:2.4/Py/Scripts/Temp/UVtoTex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This script takes the current image and assigns it as a UV mapped texture to the first available texture channel on the current object's material. If the current object does not have a material, one will be created for it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#!BPY&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot; Registration info for Blender menus: &amp;lt;- these words are ignored&lt;br /&gt;
Name: 'Add UV Image as Material Texture'&lt;br /&gt;
Blender: 240&lt;br /&gt;
Group: 'UV'&lt;br /&gt;
Tooltip: 'Put Active Image as UV Mapped Texture on Active Object'&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__author__ = &amp;quot;Johnny Matthews&amp;quot;&lt;br /&gt;
__url__ = (&amp;quot;blender&amp;quot;)&lt;br /&gt;
__version__ = &amp;quot;1.1 12/18/05&amp;quot;&lt;br /&gt;
&lt;br /&gt;
__bpydoc__ = &amp;quot;&amp;quot;&amp;quot;\&lt;br /&gt;
This script takes the active image and sets it in the first texture channel of&lt;br /&gt;
the first material of the active object mapped to COL and UV. If no material&lt;br /&gt;
exists for the Object, one is created.&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# -------------------------------------------------------------------------- &lt;br /&gt;
# Add UV as Material Texture&lt;br /&gt;
# -------------------------------------------------------------------------- &lt;br /&gt;
# ***** BEGIN GPL LICENSE BLOCK ***** &lt;br /&gt;
# &lt;br /&gt;
# This program is free software; you can redistribute it and/or &lt;br /&gt;
# modify it under the terms of the GNU General Public License &lt;br /&gt;
# as published by the Free Software Foundation; either version 2 &lt;br /&gt;
# of the License, or (at your option) any later version. &lt;br /&gt;
# &lt;br /&gt;
# This program is distributed in the hope that it will be useful, &lt;br /&gt;
# but WITHOUT ANY WARRANTY; without even the implied warranty of &lt;br /&gt;
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the &lt;br /&gt;
# GNU General Public License for more details. &lt;br /&gt;
# &lt;br /&gt;
# You should have received a copy of the GNU General Public License &lt;br /&gt;
# along with this program; if not, write to the Free Software Foundation, &lt;br /&gt;
# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. &lt;br /&gt;
# &lt;br /&gt;
# ***** END GPL LICENCE BLOCK ***** &lt;br /&gt;
# -------------------------------------------------------------------------- &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
import Blender&lt;br /&gt;
import bpy&lt;br /&gt;
from Blender import Material&lt;br /&gt;
from Blender import *&lt;br /&gt;
&lt;br /&gt;
object = Blender.Object.GetSelected()[0]&lt;br /&gt;
mesh = object.getData()&lt;br /&gt;
&lt;br /&gt;
mats = mesh.getMaterials()&lt;br /&gt;
material = 0&lt;br /&gt;
&lt;br /&gt;
if len(mats) == 0:&lt;br /&gt;
	material = Material.New('newmat')&lt;br /&gt;
else:&lt;br /&gt;
	material = mats[0]&lt;br /&gt;
&lt;br /&gt;
tex = Blender.Texture.New('UV')            &lt;br /&gt;
tex.setType('Image')                 &lt;br /&gt;
img = bpy.data.images.active            &lt;br /&gt;
tex.image = img                    &lt;br /&gt;
&lt;br /&gt;
texs = material.getTextures()&lt;br /&gt;
&lt;br /&gt;
i=0&lt;br /&gt;
for i in range (0,9):&lt;br /&gt;
	if texs[i] == None:&lt;br /&gt;
		break&lt;br /&gt;
	&lt;br /&gt;
material.setTexture(i, tex,Blender.Texture.TexCo.UV) &lt;br /&gt;
&lt;br /&gt;
if len(mats) == 0:&lt;br /&gt;
	mesh.materials.append(material)&lt;br /&gt;
	&lt;br /&gt;
mesh.update()&lt;br /&gt;
&lt;br /&gt;
Window.RedrawAll()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Mindrones</name></author>
		
	</entry>
</feed>